码迷,mamicode.com
首页 >  
搜索关键字:possible    ( 2665个结果
Palindrome Partitioning
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, giv...
分类:其他好文   时间:2014-08-18 14:25:12    阅读次数:204
Restore IP Addresses
Given a string containing only digits, restore it by returning all possible valid IP address combinations....
分类:其他好文   时间:2014-08-17 22:48:32    阅读次数:217
Optional arguments
We have seen built-in functions that take a variable number of arguments. For example range can take one, two or three arguments.It is possible to wri...
分类:其他好文   时间:2014-08-17 16:52:32    阅读次数:272
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-08-17 16:44:42    阅读次数:179
Square spiral
Square spiralNikola picks up a strange circuit board. All of its elements are connected in a spiral and it is possible to connect the neighboring elem...
分类:其他好文   时间:2014-08-17 09:09:51    阅读次数:411
给定字典做分词
最近需要用到分词,无聊写个算法。。。算法:给定一个字典和一句话,做分词;Target:输入词典,输出所有可能的分词结果思路:dfs加速:首先判断是不是这句话里所有的词在字典中都有(validate)// // Wordsplit.cpp // // Target: Find all possible splitting of a sentence given a dictionary di...
分类:其他好文   时间:2014-08-16 23:50:11    阅读次数:314
UVA - 12005 Find Solutions (最小因子分解)
Description   Find Solutions  Look at the following equation: c = ab - + 1 Now given the value of c, how many possible values of and a and b are there (a and b must be ...
分类:其他好文   时间:2014-08-16 22:33:01    阅读次数:287
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-08-15 21:08:29    阅读次数:212
[LeetCode] Subsets (bfs的vector实现)
Given a set of distinct integers, S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not c...
分类:其他好文   时间:2014-08-15 17:18:39    阅读次数:177
Subsets II
Given a collection of integers that might contain duplicates, S, return all possible subsets....
分类:其他好文   时间:2014-08-14 20:42:59    阅读次数:196
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!