码迷,mamicode.com
首页 >  
搜索关键字:leecode duplicates    ( 1908个结果
leetcode - Search in Rotated Sorted Array II
Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time complexity? How and why? Write a function to determine if a given target is in the...
分类:其他好文   时间:2014-10-12 16:06:48    阅读次数:185
leetcode - Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example, Given 1->2->3->3->4->4->5, return 1->2->5. Given 1->1-...
分类:其他好文   时间:2014-10-12 15:51:58    阅读次数:190
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. /** * Definition for s...
分类:其他好文   时间:2014-10-12 13:59:18    阅读次数:182
leetcode dfs Subsets II
Subsets II  Total Accepted: 19243 Total Submissions: 71148My Submissions Given a collection of integers that might contain duplicates, S, return all possible subsets. Note: Elements...
分类:其他好文   时间:2014-10-12 11:47:57    阅读次数:190
第16&17题 Remove Duplicates from Sorted List
Remove Duplicates from Sorted List I 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...
分类:其他好文   时间:2014-10-11 16:50:15    阅读次数:206
第14&15题 Remove Duplicates from Sorted Array I&II
Remove Duplicates from Sorted Array I 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 an...
分类:其他好文   时间:2014-10-11 16:19:56    阅读次数:140
leetcode 二分查找 Search in Rotated Sorted ArrayII
Search in Rotated Sorted Array II  Total Accepted: 18500 Total Submissions: 59945My Submissions Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this...
分类:其他好文   时间:2014-10-10 21:35:14    阅读次数:239
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-10 20:19:34    阅读次数:176
LeetCode Search in Rotated Sorted Array II
Search in Rotated Sorted Array II  Total Accepted: 18488 Total Submissions: 59914My Submissions Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this...
分类:其他好文   时间:2014-10-10 17:26:24    阅读次数:122
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 ...
分类:其他好文   时间:2014-10-09 02:58:47    阅读次数:175
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!