码迷,mamicode.com
首页 >  
搜索关键字:leecode    ( 178个结果
LeeCode-Reverse Integer
Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 class Solution { public: int reverse(int x) { int Answer=0; ...
分类:其他好文   时间:2014-11-25 12:45:26    阅读次数:191
Remove Duplicates from Sorted Array II
Follow up for "Remove Duplicates": What if duplicates are allowed at most twice? For example, Given sorted array A = [1,1,1,2,2,3], Your function should return length = 5, and A is now [1,1,2,...
分类:其他好文   时间:2014-11-20 17:07:45    阅读次数:194
Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this in place with...
分类:其他好文   时间:2014-11-20 17:07:03    阅读次数:218
LeeCode---Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
分类:其他好文   时间:2014-11-11 22:56:05    阅读次数:218
LeeCode-Reverse Integer
Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 class Solution { public: int reverse(int x) { int Answer=0; ...
分类:其他好文   时间:2014-11-11 22:53:55    阅读次数:203
LeeCode--Two Sum
LeeCode上的题目...
分类:其他好文   时间:2014-10-23 16:28:29    阅读次数:164
[leecode]Implement strStr()
Implement strStr()Implement strStr().Returns a pointer to the first occurrence of needle in haystack, ornullif needle is not part of haystack.实现String...
分类:其他好文   时间:2014-09-15 00:54:37    阅读次数:185
[leecode]Scramble String
Scramble StringGiven a strings1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible...
分类:其他好文   时间:2014-09-02 00:17:33    阅读次数:260
[leecode]Binary Tree Preorder Traversal
Binary Tree Preorder TraversalGiven a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ ...
分类:其他好文   时间:2014-08-31 18:34:41    阅读次数:180
[leecode]Best Time to Buy and Sell Stock III
Best Time to Buy and Sell Stock IIISay you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the...
分类:其他好文   时间:2014-08-26 19:13:26    阅读次数:268
178条   上一页 1 ... 14 15 16 17 18 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!