1.先找到倒数n个节点2.删除 显然需要n前面的那个节点 我想到的办法是设置个虚拟节点 public ListNode removeNthFromEnd (ListNode head, int n) { // write code here ListNode l1 = head, l2 = head; ListNode dummy = new ListNode(-1); dummy.next = head; ListNode pre = dummy; while (l1 != null && n-- >0...