@@ -0,0 +1,598 @@
+class ListNode %7B%0A    int val;%0A    ListNode next = null;%0A%0A    ListNode(int val) %7B%0A        this.val = val;%0A    %7D%0A%7D%0A%0Apublic class KthNodeFromEnd%7B%0A    public ListNode FindKthToTail(ListNode head,int k) %7B%0A%09%09if(head == null %7C%7C k%3C=0)%0A            return null;%0A        ListNode node = head;%0A        //%E5%A6%82%E6%9E%9C%E9%93%BE%E8%A1%A8%E9%95%BF%E5%BA%A6%E5%B0%8F%E4%BA%8Ek%EF%BC%8C%E8%BF%94%E5%9B%9Enull%0A        for(int i=0; i%3Ck-1; i++)%7B%0A            if(head.next!=null)%0A                head = head.next;%0A            else%0A                return null;%0A        %7D%0A        while(head.next != null)%7B%0A            head = head.next;%0A            node = node.next;%0A        %7D%0A        return node;%0A    %7D%0A%7D%0A

Create KthNodeFromEnd.java