- 博客(11)
- 资源 (3)
- 收藏
- 关注
原创 448. Find All Numbers Disappeared in an Array && 442. Find All Duplicates in an Array
给定一个整数数组 a,其中1 ≤ a[i] ≤ n (n为数组长度), 有些元素时重复出现的。找出重复出现的元素或者找出缺失的元素,这其实是同一个问题,只是换个说法而已。所以把这两题放到一起整理。 448. Find All Numbers Disappeared in an Array 1. 题目 448. Find All Numbers Disappeared in an Array G...
2019-02-19 22:04:51 243
原创 154. Find Minimum in Rotated Sorted Array II
154. Find Minimum in Rotated Sorted Array II 1. 题目 154. Find Minimum in Rotated Sorted Array II Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., ...
2019-02-16 15:28:39 338 1
原创 300. Longest Increasing Subsequence
300. Longest Increasing Subsequence 1. 题目 300. Longest Increasing Subsequence Given an unsorted array of integers, find the length of longest increasing subsequence. Example: Input: [10,9,2,5,3,7,10...
2019-02-16 12:48:31 173
原创 209. Minimum Size Subarray Sum
209. Minimum Size Subarray Sum 1. 题目 209. Minimum Size Subarray Sum Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ...
2019-02-16 12:42:59 223
原创 153. Find Minimum in Rotated Sorted Array
153. Find Minimum in Rotated Sorted Array 1. 题目 153. Find Minimum in Rotated Sorted Array Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,...
2019-02-16 11:34:53 170
原创 349. Intersection of Two Arrays
349. Intersection of Two Arrays 1. 题目 349. Intersection of Two Arrays Given two arrays, write a function to compute their intersection. Example 1: Input: nums1 = [1,2,2,1], nums2 = [2,2] Output: [2]...
2019-02-16 11:06:17 180
原创 718. Maximum Length of Repeated Subarray
718. Maximum Length of Repeated Subarray 1. 题目 718. Maximum Length of Repeated Subarray Given two integer arrays A and B, return the maximum length of an subarray that appears in both arrays. Exampl...
2019-02-16 10:32:19 193
原创 392. Is Subsequence
392. Is Subsequence 1. 题目 392. Is Subsequence Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case English letters in both s and t. t is pote...
2019-02-16 10:24:13 289
原创 组合总和问题---39. Combination Sum && 40. Combination Sum II && 216. Combination Sum III
组合总和问题—39. Combination Sum && 40. Combination Sum II && 216. Combination Sum III 一、给定一个无重复元素的数组 candidates 和一个目标数 target ,找出 candidates 中所有可以使数字和为 target 的组合 1. 题目 39. Combination Su...
2019-02-15 23:38:33 273
原创 排列问题---46. Permutations && 47. Permutations II
排列问题—46. Permutations && 47. Permutations II 一、不包含重复元素的集合,列出所有排列组合 1. 题目 46. Permutations Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] O...
2019-02-10 23:54:38 162
原创 子集问题---78. Subsets && 90. Subsets II
子集问题—78. Subsets && 90. Subsets II 一、不包含重复元素的集合,列出所有子集## 1. 题目 78. Subsets Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must no...
2019-02-10 23:26:56 288
swipter轮播图需要引用的外部css和js文件
2017-09-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人