码迷,mamicode.com
首页 >  
搜索关键字:lower    ( 3122个结果
LeetCode Anagrams
Given an array of strings, return all groups of strings that are anagrams. Note: All inputs will be in lower-case. 题意:给你string的数组,让你求出字符和个数都相同的字符串。 思路:对于每个字符串都排序后,用map标记是否已经加入到答案中。 class Solutio...
分类:其他好文   时间:2015-03-08 18:51:47    阅读次数:120
HDU5182 PM2.5
Problem DescriptionNowadays we use content of PM2.5 to discribe the quality of air. The lower content of PM2.5 one city have, the better quality of air it have. So we sort the cities according to the c...
分类:其他好文   时间:2015-03-07 22:48:39    阅读次数:274
[LeetCode] Length of Last Word
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:其他好文   时间:2015-03-06 14:08:58    阅读次数:109
【转】STL之二分查找 (Binary search in STL)
转载注明出处:http://blog.csdn.net/non_cease/article/details/7989521正确区分不同的查找算法count,find,binary_search,lower_bound,upper_bound,equal_range本文是对Effective STL第...
分类:其他好文   时间:2015-03-04 18:29:37    阅读次数:105
[LeetCode] Anagrams
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.http://www.cnblogs.com/easonliu/p/364...
分类:其他好文   时间:2015-03-04 15:56:43    阅读次数:131
LeetCode --- 49. Anagrams
题目链接:Anagrams Given an array of strings, return all groups of strings that are anagrams. Note: All inputs will be in lower-case. 这道题的要求是给定字符串数组,返回能构成异构的所有字符串。 anagram,即异构,意思是指由颠倒字母顺序组成的单词,比如“live”...
分类:其他好文   时间:2015-03-04 11:08:57    阅读次数:144
hdu 5178 pairs(BC第一题,,方法不止一种,,我用lower_bound那种。。。)
题意:X坐标上有n个数。JOHN想知道有多少对数满足:x[a]-x[b]>T; while(T--){ cin>>n>>k; rep(i,1,n) scanf("%d",&x[i]); sort(x+1,x+1+n); ll ans=0;...
分类:其他好文   时间:2015-03-03 23:23:58    阅读次数:149
MITx: 6.00.1x Alphabetical Substrings (python)
Assume s is a string of lower case characters. Write a program that prints the longest substring of s in which the letters occur in alphabetical order. For example, if s = 'azcbobobegghakl', then y...
分类:编程语言   时间:2015-03-03 22:17:49    阅读次数:805
MITx: 6.00.1x Alphabetical Substrings (python)
Assume s is a string of lower case characters.Write a program that prints the longest substring of s in which the letters occur in alphabetical order....
分类:编程语言   时间:2015-03-03 18:11:29    阅读次数:376
[leetcode 58]Length of Last Word
1题目Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word ...
分类:其他好文   时间:2015-03-02 22:08:09    阅读次数:115
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!