題目 : 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
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
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
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
一开始写的是num[i]和nums[i+1],存在数组越界的问题,以后多用i-1避免数组越界,多亏北航的一个学长。 ...
分类:
其他好文 时间:
2019-02-16 10:43:04
阅读次数:
177
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
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
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
算法描述: 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
算法描述: 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