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-10-13 03:11:58
阅读次数:
257
【题目】
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 d...
分类:
其他好文 时间:
2014-10-12 22:29:28
阅读次数:
210
相同的雪花
时间限制:1000 ms | 内存限制:65535 KB
难度:4
描述You may have heard that no two snowflakes are alike. Your task is to write a program to determine whether this is really true. Your
program w...
分类:
其他好文 时间:
2014-10-12 20:01:38
阅读次数:
277
问题: 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 ...
分类:
其他好文 时间:
2014-10-12 17:56:48
阅读次数:
154
Validate Binary Search Tree
Total Accepted: 23828 Total
Submissions: 91943My Submissions
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined...
分类:
其他好文 时间:
2014-10-12 17:40:38
阅读次数:
180
Follow up for "Search in Rotated Sorted Array":
What if duplicates are allowed?
Would this affect the run-time complexity? How and why?
Write a function to determine if a given target is in the...
分类:
其他好文 时间:
2014-10-12 16:06:48
阅读次数:
185
System Services is a singleton class to gather all available information about a device. Over 75 methods to determine everything from: System uptime, ...
分类:
移动开发 时间:
2014-10-09 22:17:47
阅读次数:
192
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-10-09 16:59:57
阅读次数:
203
[leetcode]Given a binary tree, determine if it is height-balanced....
分类:
其他好文 时间:
2014-10-09 16:25:48
阅读次数:
132
Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?使用快慢指针,如果有循环两指针必定能相遇: 1 p...
分类:
编程语言 时间:
2014-10-08 04:32:34
阅读次数:
298