![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode,算法
liuchen2333
这个作者很懒,什么都没留下…
展开
-
leetcode算法题easy心得(一)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? 首先看到这个题目,我发现问题的难度在于:如果有环的话,如果退出程序而不在环里绕圈,即循环的退出条件如何找到?原创 2017-10-22 20:54:18 · 149 阅读 · 0 评论 -
leetcode算法题easy心得(二)House Robber
问题如下: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjac原创 2017-10-22 21:16:21 · 201 阅读 · 0 评论