原题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 dep...
分类:
其他好文 时间:
2015-05-14 16:23:27
阅读次数:
132
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:
其他好文 时间:
2015-05-13 08:47:31
阅读次数:
145
ttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName解决办法非常简单:#vim /web/apache/conf/httpd.conf (...
分类:
Web程序 时间:
2015-05-13 00:31:59
阅读次数:
143
Balanced Binary Tree
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...
分类:
其他好文 时间:
2015-05-12 15:37:49
阅读次数:
113
Title:Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:(1) The left subtree of a node conta...
分类:
其他好文 时间:
2015-05-12 11:01:30
阅读次数:
96
DescriptionThere is going to be a voting at FIPA (Fédération Internationale de Programmation Association) to determine the host of the next IPWC (International Programming World Cup). Benjamin Bennett,...
分类:
其他好文 时间:
2015-05-12 09:33:09
阅读次数:
153
题目描述:
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, replace the number by the sum of ...
分类:
移动开发 时间:
2015-05-11 18:03:15
阅读次数:
136
题目描述:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in ...
分类:
编程语言 时间:
2015-05-10 20:29:24
阅读次数:
107
Problem:
Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}...
分类:
编程语言 时间:
2015-05-10 17:21:30
阅读次数:
164
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-10 17:19:39
阅读次数:
92