Problem:
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
https://oj.leetcode.com/problems/linked-list-cycle/
Problem II:
...
分类:
其他好文 时间:
2015-05-10 15:44:57
阅读次数:
121
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the c...
分类:
其他好文 时间:
2015-05-10 15:35:12
阅读次数:
109
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary tree and sum
...
分类:
其他好文 时间:
2015-05-09 15:04:08
阅读次数:
99
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer...
分类:
移动开发 时间:
2015-05-09 14:51:09
阅读次数:
120
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never diffe...
分类:
其他好文 时间:
2015-05-09 13:29:28
阅读次数:
101
https://leetcode.com/problems/valid-sudoku/Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially...
分类:
其他好文 时间:
2015-05-09 13:04:55
阅读次数:
115
Given a linked list, determine if it has a cycle in it.快慢步,直接AC代码:值得注意一下的地方就是if(!p2->next || !p2->next->next),如果p2==NULL,那么p2->next用法是错误的,而||运算符的性质是当前...
分类:
其他好文 时间:
2015-05-08 12:20:50
阅读次数:
121
【题目】
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are ...
分类:
其他好文 时间:
2015-05-08 10:55:44
阅读次数:
95
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
其他好文 时间:
2015-05-08 10:46:27
阅读次数:
112
只有两种东西能让一个团队团结,恐惧或忠诚。---《速度与激情7》 原文链接:http://engineering.meetme.com/2015/04/android-determine-when-app-is-opened-or-closed/ 存在的问题 Android开发中不可避免的会遇到...
分类:
移动开发 时间:
2015-05-07 22:19:35
阅读次数:
312