public class Solution { public ListNode mergeTwoLists (ListNode l1, ListNode l2) { // write code here //思路:l1,l2有序,合并后的链表也要有序 if(l1==null) return l2; if(l2==null) return l1; ListNode node = new ListNode(-1); ListNode res = node;//res保存为头结点 while(l1...