码迷,mamicode.com
首页 >  
搜索关键字:return    ( 60766个结果
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 o...
分类:其他好文   时间:2014-06-04 18:37:55    阅读次数:322
Restore IP Addresses
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["255.2...
分类:其他好文   时间:2014-06-03 14:06:24    阅读次数:271
Interleaving String
Givens1,s2,s3, find whethers3is formed by the interleaving ofs1ands2.For example,Given:s1="aabcc",s2="dbbca",Whens3="aadbbcbcac", return true.Whens3="...
分类:其他好文   时间:2014-06-03 14:05:46    阅读次数:177
LeetCode Merge Intervals
class Solution {private: static int compare(const Interval& a, const Interval& b) { return a.start merge(vector &intervals) { vector...
分类:其他好文   时间:2014-06-03 12:32:23    阅读次数:228
poj 1011 Sticks
DescriptionGeorge took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to ...
分类:其他好文   时间:2014-05-30 23:00:32    阅读次数:395
LeetCode --- Valid Palindrome
题目链接判断字符串是否为回文串。附上代码: 1 class Solution { 2 public: 3 bool isPalindrome(string s) { 4 if (s.empty()) return true; // consider empty string ...
分类:其他好文   时间:2014-05-30 21:48:12    阅读次数:347
Return 和 Break 的区别
前段日子发布的负面情绪太多了,哦哦,其实我需要的是努力,努力提高自己的真实能力。经历了好多的鄙视否定,我已经没有最初那么敏感,心态平和了许多。我没有借口说基础不好了,一年了,要努力的话,那么我应该不会落后太远,可我努力了吗?好像大部分回忆都是在加班加点的费劲的完成任务,而自己的编程知识确实无暇...
分类:其他好文   时间:2014-05-30 16:59:53    阅读次数:255
Word Break II
Given a stringsand a dictionary of wordsdict, add spaces insto construct a sentence where each word is a valid dictionary word.Return all such possibl...
分类:其他好文   时间:2014-05-30 16:28:34    阅读次数:199
Reverse Words in a String
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".click to show clarification.Cl...
分类:其他好文   时间:2014-05-30 16:25:58    阅读次数:233
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-05-30 16:04:06    阅读次数:237
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!