![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
文章平均质量分 66
nan_009
这个作者很懒,什么都没留下…
展开
-
leetcode-Linked List
Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?原创 2014-11-17 20:10:33 · 550 阅读 · 0 评论 -
Rotate Image、Pascal's Triangle vector用法
题目:You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?原创 2014-10-30 20:57:24 · 661 阅读 · 0 评论 -
leetcode sqrt(x)
Implement int sqrt(int x).Compute and return the square root of x.int sqrt(int x) { int i; if (x == 0) return 0; if (x == 1 || x == 2 || x == 3) return 1; if (x <= 10000000原创 2014-11-25 21:45:58 · 1066 阅读 · 0 评论