摘要: Reverse Linked List Reverse a singly linked list. 此题不难,附上java代码: 阅读全文
posted @ 2017-03-12 12:42 世人谓我恋长安 阅读(101) 评论(0) 推荐(0) 编辑
摘要: Linked List Cycle Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 此题并不难,声明2个指针一个步长1,一个步长 阅读全文
posted @ 2017-03-12 11:11 世人谓我恋长安 阅读(130) 评论(0) 推荐(0) 编辑