码迷,mamicode.com
首页 >  
搜索关键字:problems    ( 6275个结果
Majority Element
https://leetcode.com/problems/majority-element/ 1 class Solution { 2 public: 3 int majorityElement(vector& nums) { 4 map mymap; 5 ...
分类:其他好文   时间:2015-07-08 12:36:31    阅读次数:122
Excel Sheet Column Number
https://leetcode.com/problems/excel-sheet-column-number/ 1 class Solution { 2 public: 3 int titleToNumber(string s) { 4 int size=s.size();...
分类:其他好文   时间:2015-07-08 12:25:53    阅读次数:95
Happy Number
https://leetcode.com/problems/happy-number/快乐数 1 class Solution { 2 public: 3 bool isHappy(int n) { 4 int res; 5 int temp; 6 ...
分类:移动开发   时间:2015-07-08 12:21:17    阅读次数:176
65 Valid Number
65 Valid Number链接:https://leetcode.com/problems/valid-number/ 问题描述: Validate if a given string is numeric.Some examples: “0” => true ” 0.1 ” => true “abc” => false “1 a” => false “2e10” => true...
分类:其他好文   时间:2015-07-07 17:06:26    阅读次数:120
231 Power of Two
231 Power of Two链接:https://leetcode.com/problems/power-of-two/ 问题描述: Given an integer, write a function to determine if it is a power of two.Credits: Special thanks to @jianchao.li.fighter for ad...
分类:其他好文   时间:2015-07-07 16:59:21    阅读次数:148
[LeetCode][JavaScript]Implement Trie (Prefix Tree)
Implement Trie (Prefix Tree)Implement a trie withinsert,search, andstartsWithmethods.https://leetcode.com/problems/implement-trie-prefix-tree/实现字典树,每个...
分类:编程语言   时间:2015-07-07 14:34:59    阅读次数:187
hdu 1867 A + B for you again
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1867A + B for you againDescriptionGenerally speaking, there are a lot of problems about strings processi...
分类:其他好文   时间:2015-07-06 21:34:58    阅读次数:381
uva 10499 The Land of Justice
In the Land of Justice the selling price of everything is fixed all over the country. Nobody can buy a thing and sell it in double price. But, that created problems for the businessmen. They left their...
分类:其他好文   时间:2015-07-06 14:20:50    阅读次数:121
[LeetCode][JavaScript]Power of Two
Power of TwoGiven an integer, write a function to determine if it is a power of two.https://leetcode.com/problems/power-of-two/二分。2的整数次幂,要么开方后是整数(这个数也...
分类:编程语言   时间:2015-07-06 13:57:39    阅读次数:238
leetcode | Implement strStr() | 实现字符串查找函数
Implement strStr() : https://leetcode.com/problems/implement-strstr/Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 如:haystack = “bcbcda”; nee...
分类:其他好文   时间:2015-07-05 16:48:14    阅读次数:342
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!