@@ -0,0 +1,839 @@
+/**%0A * Definition for ListNode%0A * public class ListNode %7B%0A *     int val;%0A *     ListNode next;%0A *     ListNode(int x) %7B%0A *         val = x;%0A *         next = null;%0A *     %7D%0A * %7D%0A */%0A%0Apublic class Solution %7B%0A    /**%0A     * @param head: The first node of linked list.%0A     * @param n: An integer%0A     * @return: The head of linked list.%0A     */%0A    public ListNode removeNthFromEnd(ListNode head, int n) %7B%0A        // write your code here%0A        %0A        ListNode l0 = new ListNode(0);%0A        l0.next = head;%0A        ListNode l1 = l0;%0A        ListNode l2 = head;%0A        %0A        int t = 0;%0A        while(t %3C n) %7B%0A            l2 = l2.next;%0A            t ++;%0A        %7D%0A        %0A        while(l2 != null) %7B%0A            l1 = l1.next;%0A            l2 = l2.next;%0A        %7D%0A        %0A        l1.next = l1.next.next;%0A        return l0.next;%0A    %7D%0A%7D

add 174