lc24两两交换链表中的节点思路模拟大法,注意dummy是主线,cur只是dummy完成任务的分身代码 /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode() {} * ListNode(int val) { this.val = val; } * ListNode(int val, ListNode next) { this.val = val; this.next = next;...