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-08-14 00:59:37
阅读次数:
195
原题:
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...
分类:
其他好文 时间:
2014-08-13 15:03:31
阅读次数:
261
题目一:Valid Sudoku
Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.
The Sudoku board could be partially filled, where empty cells are filled with the character '.'.
...
分类:
其他好文 时间:
2014-08-12 17:21:54
阅读次数:
250
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.For e...
分类:
其他好文 时间:
2014-08-12 12:51:34
阅读次数:
203
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?思路:使用两个指针slow和fast,分别以1和2的速度遍历链表。若链表中存在环,则...
分类:
其他好文 时间:
2014-08-11 20:45:12
阅读次数:
230
一个没有把百酒都尝遍的人,是不会体会到清水之味的~Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more di...
分类:
其他好文 时间:
2014-08-11 17:40:22
阅读次数:
237
解决方案:进入apache的安装目录:#vim/etc/httpd/conf/httpd.conf将其中一行#ServerNamelocalhost:80注释#号去掉即可。再重启服务httpd即可。
分类:
其他好文 时间:
2014-08-11 10:22:33
阅读次数:
189
TreeYou are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the bi....
分类:
其他好文 时间:
2014-08-10 18:11:20
阅读次数:
273
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:
其他好文 时间:
2014-08-10 15:23:20
阅读次数:
215
Overflow
Write a program that reads an expression consisting of two non-negative integer and an operator. Determine if either integer or the result of the expression is too large to be rep...
分类:
其他好文 时间:
2014-08-09 21:35:29
阅读次数:
321