A message containing letters from A-Z is being encoded to numbers using the following mapping:
'A' -> 1
'B' -> 2
...
'Z' -> 26
Given an encoded message containing digits, determine the total numb...
分类:
其他好文 时间:
2014-10-26 17:04:00
阅读次数:
194
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 all val...
分类:
其他好文 时间:
2014-10-26 17:02:49
阅读次数:
142
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-10-26 14:22:44
阅读次数:
183
问题描述:
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...
分类:
其他好文 时间:
2014-10-26 13:11:29
阅读次数:
177
/usr/local/httpd/bin/apachectl startAH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain...
分类:
Web程序 时间:
2014-10-26 11:29:37
阅读次数:
195
问题描述:
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is a palindrome.
"race a car" is...
分类:
其他好文 时间:
2014-10-25 21:30:51
阅读次数:
191
DescriptionOverflowWrite a program that reads an expression consisting of two non-negative integer and an operator. Determine if either integer or the...
分类:
其他好文 时间:
2014-10-25 15:47:50
阅读次数:
182
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:
其他好文 时间:
2014-10-25 14:18:46
阅读次数:
178
题目:Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled wi...
分类:
其他好文 时间:
2014-10-24 14:15:06
阅读次数:
174
New Zealand currency consists of $100, $50, $20, $10, and $5 notes and $2, $1, 50c, 20c, 10c and 5c coins. Write a program that will determine, for any given amount, in how many ways that amount may b...
分类:
其他好文 时间:
2014-10-23 22:49:46
阅读次数:
247