码迷,mamicode.com
首页 >  
搜索关键字:duplicates    ( 1738个结果
(C++練習) 26. Remove Duplicates from Sorted Array
題目 : Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extr ...
分类:编程语言   时间:2019-02-26 00:39:53    阅读次数:227
78 [LeetCode] Subsets
Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set). Note: The solution set must not conta ...
分类:其他好文   时间:2019-02-24 17:29:57    阅读次数:166
26. Remove Duplicates from Sorted Array
Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra spa ...
分类:其他好文   时间:2019-02-20 20:01:55    阅读次数:176
377. Combination Sum IV
Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target. ...
分类:其他好文   时间:2019-02-18 01:20:29    阅读次数:163
26. Remove Duplicates from Sorted Array
一开始写的是num[i]和nums[i+1],存在数组越界的问题,以后多用i-1避免数组越界,多亏北航的一个学长。 ...
分类:其他好文   时间:2019-02-16 10:43:04    阅读次数:177
19.2.7 [LeetCode 47] Permutations II
Given a collection of numbers that might contain duplicates, return all possible unique permutations. Example: 1 class Solution { 2 public: 3 vector<v ...
分类:其他好文   时间:2019-02-07 19:05:26    阅读次数:151
39. Combination Sum
Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the ...
分类:其他好文   时间:2019-02-07 09:12:45    阅读次数:175
19.2.3 [LeetCode 39] Combination Sum
Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the ...
分类:其他好文   时间:2019-02-03 18:11:43    阅读次数:150
LeetCode-105-Construct Binary Tree from Preorder and Inorder Traversal
算法描述: Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. For exa ...
分类:其他好文   时间:2019-02-03 11:08:11    阅读次数:193
LeetCode-106-Construct Binary Tree from Inorder and Postorder Traversal
算法描述: Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. For ex ...
分类:其他好文   时间:2019-02-03 10:41:35    阅读次数:198
1738条   上一页 1 ... 12 13 14 15 16 ... 174 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!