Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:
其他好文 时间:
2014-09-03 22:29:47
阅读次数:
253
Description
Consider two natural numbers A and B. Let S be the sum of all natural divisors of A^B. Determine S modulo 9901 (the rest of the division of S by 9901).
Input
The only line contains the ...
分类:
其他好文 时间:
2014-09-03 16:50:26
阅读次数:
271
问题描述
Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" ...
分类:
其他好文 时间:
2014-09-02 19:54:15
阅读次数:
150
一、解决APR和APR-util错误: 1.1、安装APR:[root@ganglia httpd-2.2.23]# cd srclib/apr[root@ganglia apr]# ./configure --prefix=/usr/local/apr root@ganglia apr]# ...
分类:
其他好文 时间:
2014-09-02 17:10:15
阅读次数:
186
Given n integers you cangenerate 2n-1 non-empty subsets from them. Determine for howmany of these subsets the product of all the integers in that is a perfectsquare. For example for the set {4,6,10,15...
分类:
其他好文 时间:
2014-09-02 15:50:45
阅读次数:
247
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:
其他好文 时间:
2014-09-02 12:16:04
阅读次数:
192
Path Sum
Total Accepted: 20393 Total
Submissions: 66674My Submissions
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...
分类:
其他好文 时间:
2014-08-31 21:33:41
阅读次数:
284
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 example, given
s = "leetcode",
dict = ["leet"...
分类:
其他好文 时间:
2014-08-31 20:07:12
阅读次数:
233
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 va...
分类:
其他好文 时间:
2014-08-31 09:18:11
阅读次数:
203