2013年11月5日

[算法][LeetCode]Linked List Cycle & Linked List Cycle II——单链表中的环

摘要: 题目要求Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?如何判断一个单链表中有环?Linked List Cycle IIGiven a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using ext 阅读全文

posted @ 2013-11-05 17:16 南京大乱炖 阅读(27381) 评论(8) 推荐(10) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示