码迷,mamicode.com
首页 >  
搜索关键字:possible    ( 2665个结果
Combinations <leetcode>
Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3,4], [2,3],...
分类:其他好文   时间:2014-09-09 21:17:39    阅读次数:205
Leetcode--permutations II
Problem Description: Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example, [1,1,2] have the following unique permutations: [1,1,2...
分类:其他好文   时间:2014-09-09 16:17:29    阅读次数:200
leetcode - String to Integer (atoi)
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:其他好文   时间:2014-09-09 15:09:08    阅读次数:256
Leetcode dfs Letter Combinations of a Phone Number
Letter Combinations of a Phone Number  Total Accepted: 15964 Total Submissions: 60700My Submissions Given a digit string, return all possible letter combinations that the number could repr...
分类:其他好文   时间:2014-09-09 13:13:39    阅读次数:191
01 Developing Successful Oracle Applications
You should do it in a single SQL statement if at all possible. And believe it or not, it is almost always possible.If you can’t do it in a single SQL ...
分类:移动开发   时间:2014-09-09 12:16:38    阅读次数:262
Leetcode: Permutations II
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2] have the following unique per...
分类:其他好文   时间:2014-09-08 00:55:26    阅读次数:269
LeetCode第八题, String to Integer (atoi)
题目原文 Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible in...
分类:其他好文   时间:2014-09-07 11:03:05    阅读次数:237
Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:其他好文   时间:2014-09-06 18:40:43    阅读次数:224
Leetcode: Subsets II
Given a collection of integers that might contain duplicates, S, return all possible subsets.Note:Elements in a subset must be in non-descending order...
分类:其他好文   时间:2014-09-06 07:32:22    阅读次数:239
hdu 1011 Starship Troopers 树dp
题目大意是有n个房间组成一棵树,你有m个士兵,从1号房间开始让士兵向相邻的房间出发,每个房间里有一个代价,代价是值/20个士兵,同时有一个价值,问你花费这m个士兵可以得到的最大价值是多少定义dp[i][j]表示根结点为i时,用掉j个士兵获得的最大possible。dp[i][j] = max(dp[...
分类:其他好文   时间:2014-09-05 12:39:41    阅读次数:165
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!