public ListNode getKthFromEnd(ListNode head, int k) { ListNode slow=head; ListNode fast=head; int t = 0; for(;fast!=null;){ if(t>=k) { slow=slow.next; Read More
posted @ 2020-09-01 15:11 soft.push("zzq") Views(106) Comments(0) Diggs(0) Edit