https://oj.leetcode.com/problems/anagrams/Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-...
分类:
其他好文 时间:
2015-02-25 22:22:18
阅读次数:
242
Problem Description
Problems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem you will be analyzing a property o...
分类:
其他好文 时间:
2015-02-25 14:16:04
阅读次数:
178
https://oj.leetcode.com/problems/balanced-binary-tree/Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced bina...
分类:
其他好文 时间:
2015-02-24 17:31:15
阅读次数:
118
https://oj.leetcode.com/problems/minimum-depth-of-binary-tree/Given a binary tree, find its minimum depth.The minimum depth is the number of nodes alo...
分类:
其他好文 时间:
2015-02-24 16:20:19
阅读次数:
141
使用菜单栏的window-->showview,打开problems窗口,可以从这里找到相应的errors和warnings.查看errors到底是什么,根据错误提示解决问题。根据本人经验,一般而言,如果该工程在其他环境是ok的,仅需update工程配置即可,如下图:
分类:
系统相关 时间:
2015-02-24 13:54:00
阅读次数:
238
http://www.spoj.com/problems/BALNUM/
SPOJ Problem Set (classical)
10606. Balanced Numbers
Problem code: BALNUM
Balanced numbers have been used by mathematicians for centu...
分类:
其他好文 时间:
2015-02-24 12:37:35
阅读次数:
164
题意:在acm比赛中,n题,t队。给出每个队做对每题的概率,问每队至少对一题,至少有一队做对至少m题的概率
分析:dp,f[i][j]表示第i个队伍做对第j题的概率。g[i][j][k]表示第i个队伍对于前j题而言做对k道的概率。
g[i][j][k] = g[i][j - 1][k - 1] * (f[i][j]) + g[i][j - 1][k] * (1 - f[i][j]);
...
分类:
其他好文 时间:
2015-02-24 06:58:45
阅读次数:
178
Problem DescriptionGenerally speaking, there are a lot of problems about strings processing. Now you encounter another such problem. If you get two strings, such as “asdf” and “sdfg”, the result of the...
分类:
其他好文 时间:
2015-02-23 16:46:39
阅读次数:
148
KMP算法的综合练习DP很久没写搞了半天才明白。本题结合Next[]的意义以及动态规划考察对KMP算法的掌握。Problem DescriptionIt is well known that AekdyCoin is good at string problems as well as number...
分类:
其他好文 时间:
2015-02-23 16:39:09
阅读次数:
135
https://oj.leetcode.com/problems/reverse-nodes-in-k-group/Given a linked list, reverse the nodes of a linked listkat a time and return its modified li...
分类:
其他好文 时间:
2015-02-22 17:19:46
阅读次数:
198