码迷,mamicode.com
首页 >  
搜索关键字:linkedlistcycle    ( 2个结果
[LeetCode]LinkedListCycle 和LinkedListCycle2
题目1: Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 题目2: Given a linked list, return th ...
分类:其他好文   时间:2018-07-11 12:36:46    阅读次数:131
leetcode_141_Linked List Cycle
思路: 一想到唯一就直接联想到了hashSet,至于在不用额外存储空间的情况下把题目搞出来,这个,确实还没有想到,to be continued.........
分类:其他好文   时间:2015-02-03 13:27:23    阅读次数:174
2条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!