Given a linked list, determine if it has a cycle in it. (Without using eatra space)//Solution: define two pointers, one moves one step each time while...
分类:
其他好文 时间:
2014-11-20 13:31:10
阅读次数:
181
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.Ja...
分类:
其他好文 时间:
2014-11-20 13:30:27
阅读次数:
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...
分类:
其他好文 时间:
2014-11-20 01:16:54
阅读次数:
172
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...
分类:
其他好文 时间:
2014-11-19 20:16:31
阅读次数:
152
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Determine i...
分类:
编程语言 时间:
2014-11-19 18:51:35
阅读次数:
226
Could not determine the dependencies of task ':compileReleaseJava'.
> failed to find target android-19
这个问题需要的在工程的根目录添加两个文件local.properties和settings.gradle这 两个文件
local.properties的内容是:你的SD...
分类:
编程语言 时间:
2014-11-19 18:44:13
阅读次数:
179
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Determine i...
分类:
其他好文 时间:
2014-11-19 12:35:24
阅读次数:
130
Question:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close...
分类:
其他好文 时间:
2014-11-19 10:33:46
阅读次数:
142
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:
编程语言 时间:
2014-11-19 07:08:44
阅读次数:
197
Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?Linked ListTwo Pointers''...
分类:
其他好文 时间:
2014-11-18 23:25:09
阅读次数:
170