import java.util.*; /* * public class ListNode { * int val; * ListNode next = null; * } */ public class Solution { /** * * @param head1 ListNode类 * @param head2 ListNode类 * @return ListNode类 */ //反转链表 public ListNode ReverseList(ListNode pHead) { if(pHead == null) return null; ListNode cur = pHead; ...