码迷,mamicode.com
首页 >  
搜索关键字:sorted    ( 5925个结果
leetcode[26]Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
分类:其他好文   时间:2015-02-10 15:10:42    阅读次数:130
leetcode[23]Merge k Sorted Lists
Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity./** * Definition for singly-linked list. * struct List...
分类:其他好文   时间:2015-02-10 15:08:02    阅读次数:148
leetcode[34]Search for a Range
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:其他好文   时间:2015-02-10 15:04:55    阅读次数:150
leetcode[33]Search in Rotated Sorted Array
Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are given a target value t...
分类:其他好文   时间:2015-02-10 15:01:12    阅读次数:171
leetcode[21]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./** * Def...
分类:其他好文   时间:2015-02-10 14:55:46    阅读次数:127
leetcode[35]Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:其他好文   时间:2015-02-10 14:50:56    阅读次数:101
leetcode[4]Median of Two Sorted Arrays
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ...
分类:其他好文   时间:2015-02-10 14:48:19    阅读次数:126
【LeetCode从零单排】No26.Remove Duplicates from Sorted Array
题目     题目要求:去除sort int数组中的重复项。     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,...
分类:其他好文   时间:2015-02-10 13:31:25    阅读次数:126
HappyLeetcode47:Median of Two Sorted Arrays
题目:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should ...
分类:移动开发   时间:2015-02-10 13:02:20    阅读次数:120
[LeetCode] Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:其他好文   时间:2015-02-10 12:51:49    阅读次数:177
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!