码迷,mamicode.com
首页 >  
搜索关键字:leecode duplicates    ( 1908个结果
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 order. You may assume no duplicates in...
分类:其他好文   时间:2014-10-28 12:19:51    阅读次数:191
LeetCode:Remove Duplicates from Sorted List
问题描述: Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3. 思路:遍历链表,通过两个指针...
分类:其他好文   时间:2014-10-28 12:12:23    阅读次数:143
LeetCode--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...
分类:其他好文   时间:2014-10-26 11:34:46    阅读次数:243
[Leetcode] 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 fo...
分类:其他好文   时间:2014-10-25 22:57:43    阅读次数:155
leetcode - 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-10-25 18:51:14    阅读次数:143
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 order. You may assume no duplicates in the array....
分类:其他好文   时间:2014-10-25 17:23:51    阅读次数:131
LeetCode 新题: Find Minimum in Rotated Sorted Array II 解题报告-二分法模板解法
Find Minimum in Rotated Sorted Array II Follow up for "Find Minimum in Rotated Sorted Array":What if duplicates are allowed?Would this affect the run-...
分类:其他好文   时间:2014-10-24 20:42:30    阅读次数:299
Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu...
分类:其他好文   时间:2014-10-24 18:10:21    阅读次数:236
LeeCode--Two Sum
LeeCode上的题目...
分类:其他好文   时间:2014-10-23 16:28:29    阅读次数:164
leetcode - Permutations II
Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example, [1,1,2] have the following unique permutations: [1,1,2], [1,2,1], and [2,1,1]....
分类:其他好文   时间:2014-10-23 12:29:48    阅读次数:136
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!