Problem Description There is a youngster known for amateur propositions concerning several mathematical hard problems.Nowadays, he is preparing a thou ...
分类:
其他好文 时间:
2017-07-26 10:47:01
阅读次数:
149
#139. Word Break Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a spa ...
分类:
其他好文 时间:
2017-07-26 01:43:53
阅读次数:
150
代码: class Solution { public: /** * Determine whether s3 is formed by interleaving of s1 and s2. * @param s1, s2, s3: As description. * @return: true o ...
分类:
其他好文 时间:
2017-07-25 19:29:43
阅读次数:
123
Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 一个+1 一个+2 看看能不能相遇。注意代码不要写乱了...以后尽量用p1 p2 ...
分类:
其他好文 时间:
2017-07-24 21:31:27
阅读次数:
105
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Pan ...
分类:
其他好文 时间:
2017-07-24 19:08:19
阅读次数:
111
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. F ...
分类:
其他好文 时间:
2017-07-24 13:10:41
阅读次数:
106
Ilya is an experienced player in tic-tac-toe on the 4?×?4 field. He always starts and plays with Xs. He played a lot of games today with his friend Ar ...
分类:
其他好文 时间:
2017-07-24 09:52:11
阅读次数:
225
Friends Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 163 Accepted Submission(s): 61 Problem D ...
分类:
其他好文 时间:
2017-07-23 19:47:12
阅读次数:
212
题目网址:http://poj.org/problem?id=3295 题目: Tautology Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 13231 Accepted: 5050 Description WFF 'N P ...
分类:
其他好文 时间:
2017-07-23 13:29:22
阅读次数:
161
Given an integer, write a function to determine if it is a power of three. Follow up:Could you do it without using any loop / recursion? 判断一个数是否是3的幂,则 ...
分类:
其他好文 时间:
2017-07-22 23:53:54
阅读次数:
338