会员
众包
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
soft.push("zzq")
CnBlogs
Home
New Post
Contact
Admin
Subscription
2020年9月1日
寻找链表中倒数第k个节点
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
公告