码迷,mamicode.com
首页 >  
搜索关键字:problems    ( 6275个结果
Anagrams
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
YT14-HDU-求范围内多个数经过变换后的那个最大值
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
Balanced Binary Tree
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
Minimum Depth of Binary Tree
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
myeclipse导入maven工程,明明没有错误,项目顶层文件夹却出现红叉的解决方法
使用菜单栏的window-->showview,打开problems窗口,可以从这里找到相应的errors和warnings.查看errors到底是什么,根据错误提示解决问题。根据本人经验,一般而言,如果该工程在其他环境是ok的,仅需update工程配置即可,如下图:
分类:系统相关   时间:2015-02-24 13:54:00    阅读次数:238
spoj10606 数位dp (求出现的数字,所有偶数出现奇数次,所有奇数出现偶数次)
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
poj 2151 Check the difficulty of problems 概率dp
题意:在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
HDU1867 A + B for you again KMP应用
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】Count the string
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
Reverse Nodes in k-Group
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!