码迷,mamicode.com
首页 >  
搜索关键字:leecode duplicates    ( 1908个结果
Permutations II <LeetCode>
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm...
分类:其他好文   时间:2014-08-27 01:37:16    阅读次数:242
[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
LeetCode Solutions : 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-08-26 17:19:16    阅读次数:191
[leecode]Clone Graph
Clone GraphClone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.OJ's undirected graph serialization:Nodes are l...
分类:其他好文   时间:2014-08-25 22:22:44    阅读次数:237
[leecode]Word Break II
Word Break IIGiven a stringsand a dictionary of wordsdict, add spaces insto construct a sentence where each word is a valid dictionary word.Return all...
分类:其他好文   时间:2014-08-24 23:46:03    阅读次数:244
Remove Duplicates from Sorted Array
Remove Duplicates from Sorted Array  Total Accepted: 22879 Total Submissions: 70824My Submissions Given a sorted array, remove the duplicates in place such that each element appear only on...
分类:其他好文   时间:2014-08-23 15:25:01    阅读次数:196
Remove Duplicates from Sorted List II
Remove Duplicates from Sorted List II  Total Accepted: 17137 Total Submissions: 69046My Submissions Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only d...
分类:其他好文   时间:2014-08-23 14:00:40    阅读次数:187
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 r...
分类:其他好文   时间:2014-08-23 11:18:00    阅读次数:167
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...
分类:其他好文   时间:2014-08-23 11:14:10    阅读次数:219
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 ...
分类:其他好文   时间:2014-08-23 02:15:59    阅读次数:157
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!