码迷,mamicode.com
首页 >  
搜索关键字:possible    ( 2665个结果
【Restore IP Addresses 】cpp
题目:Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["25...
分类:其他好文   时间:2015-05-28 09:17:01    阅读次数:169
UVA 11248 Frequency Hopping (最大流+最小割)
题意:与正常的网络流一样,不过给定的第一行的最后一个数C的意思是能能否在给定的图里求出修改某一条边或者不修改某一条边是的这个图的流变成C,如果没修改就能有C,那么输出possible,通过修改能得到C输出possible+能修改的边集合,否则输出no possible 思路:(自己的是死暴力方法,直接爆了,想了很多法子都来不起,最后参照白书的思路来起了)可以先求出最大流,然后求出最小割里的弧,依...
分类:其他好文   时间:2015-05-27 21:07:58    阅读次数:266
leetcode 8 -- String to Integer (atoi)
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 yourse...
分类:其他好文   时间:2015-05-27 15:50:24    阅读次数:134
Combination Sum III
dfs 参考I II, 切不要K sumFind all possible combinations ofknumbers that add up to a numbern, given that only numbers from 1 to 9 can be used and each combi...
分类:其他好文   时间:2015-05-27 06:20:06    阅读次数:134
[LeetCode][JavaScript]Combination Sum III
Combination Sum IIIFind all possible combinations ofknumbers that add up to a numbern, given that only numbers from 1 to 9 can be used and each combin...
分类:编程语言   时间:2015-05-27 00:44:49    阅读次数:234
【Palindrome Partitioning】cpp
题目:Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, ...
分类:其他好文   时间:2015-05-26 18:03:37    阅读次数:129
[LeetCode] Subsets
Subsets Given a set of distinct integers, nums, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets...
分类:其他好文   时间:2015-05-26 16:11:41    阅读次数:107
ACM-另类乘法
描述 Bessie is tired of multiplying pairs of numbers the usual way, so she invented her own style of multiplication. In her style, A*B is equal to the sum of all possible pairwise products between t...
分类:其他好文   时间:2015-05-26 14:29:34    阅读次数:145
Learn Vim Progressively——level1&level2
You want to teach yourself vim (the best text editor known to human kind) in the fastest way possible. This is my way of doing it. You start by learning the minimal to survive, then you integrate all ...
分类:系统相关   时间:2015-05-26 12:47:13    阅读次数:203
读《effective C++》2
条款03:尽可能使用const(Use const whenever possible)1.const == 奇妙的事const的一件奇妙的事是,他允许你定义一个约束,(告诉编译器,这是一个“不该被改动的对象”),并且你这样做了之后编译器会协助你执行这条约束,使编译器成为你的助手。这确实是一件奇妙的...
分类:编程语言   时间:2015-05-25 23:58:27    阅读次数:297
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!