码迷,mamicode.com
首页 >  
搜索关键字:should    ( 4948个结果
Single Number II
Single Number IIGiven an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a lin...
分类:其他好文   时间:2014-11-25 16:19:11    阅读次数:142
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-25 14:35:41    阅读次数:150
Leetcode Single Number
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:其他好文   时间:2014-11-25 14:21:59    阅读次数:183
Leetcode Single Number II
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:其他好文   时间:2014-11-25 14:14:58    阅读次数:149
LeetCode:Flatten Binary Tree to Linked List
题目描述: Given a binary tree, flatten it to a linked list in-place. For example, Given 1 / 2 5 / \ 3 4 6 The flattened tree should look like...
分类:其他好文   时间:2014-11-25 12:49:09    阅读次数:188
[leetcode] 17. Merge Two Sorted Lists
这个非常简单的题目,题目如下: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two...
分类:其他好文   时间:2014-11-25 00:02:41    阅读次数:211
LeetCode[Hash Table]: Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, where...
分类:其他好文   时间:2014-11-24 15:28:13    阅读次数:136
Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. #include #include typedef struct ListNode { ...
分类:其他好文   时间:2014-11-24 15:24:26    阅读次数:183
Java开发5个JDK工具
http://www.csdn.net/article/2014-11-20/2822750-5-JDK-Tools-Every-Java-Developer-Should-Know?reload=1
分类:编程语言   时间:2014-11-24 14:56:50    阅读次数:164
First Missing Positive
Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:其他好文   时间:2014-11-24 13:30:40    阅读次数:166
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!