自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

原创 【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 candidate numbers sums to target.The same re...

2020-01-31 23:28:10 60

原创 【LeetCode 55】 Jump Game

题目描述Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Determine if...

2020-01-31 21:39:34 136

原创 【LeetCode 75】Sort Colors

题意Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white and blue.Here, we will use the ...

2020-01-31 13:51:59 77

原创 【LeetCode 145】Binary Tree Postorder Traversal

题意Given a binary tree, return the postorder traversal of its nodes’ values.Example:Input: [1,null,2,3] 1 \ 2 / 3Output: [3,2,1]Follow up: Recursive solution is trivial, could...

2020-01-30 23:33:51 96

原创 【LeetCode 144】Binary Tree Preorder Traversal

题意Given a binary tree, return the preorder traversal of its nodes’ values.Example:Input: [1,null,2,3] 1 \ 2 / 3Output: [1,2,3]Follow up: Recursive solution is trivial, could ...

2020-01-30 18:27:27 70

原创 【LeetCode 94】Binary Tree Inorder Traversal

题目描述:Given a binary tree, return the inorder traversal of its nodes’ values.Example:Input: [1,null,2,3] 1 \ 2 / 3Output: [1,3,2]Follow up: Recursive solution is trivial, coul...

2020-01-27 15:04:39 79

原创 【LeetCode 33】Search in Rotated Sorted Array

题意:Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).You are given a target value to search. If foun...

2020-01-17 11:02:12 102

原创 【LeetCode 739】 Daily Temperatures

题意:Given a list of daily temperatures T, return a list such that, for each day in the input, tells you how many days you would have to wait until a warmer temperature. If there is no future day for w...

2020-01-16 17:38:32 107

原创 【LeetCode 22】Generate Parentheses

题意:Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:[ "((()))", "(()())", "(())()", "()(())...

2020-01-16 16:22:47 77

原创 【LeetCode 406】Queue Reconstruction by Height

题意:Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the person and k is the number of people in front of t...

2020-01-15 22:12:03 82

原创 【LeetCode 621】Task Scheduler

题意:Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks. Tasks could be done without original order. Each task co...

2020-01-10 20:06:50 120

原创 【LeetCode 48】Rotate Image

题目描述:You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Note:You have to rotate the image in-place, which means you have to modify the input 2D matri...

2020-01-10 19:23:14 138

原创 【LeetCode 31】Next Permutation

题目描述:Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possible, it must rearrange it as the lowest possi...

2020-01-04 20:49:06 77

原创 【LeetCode 78】Subsets

题目描述:Given a set of distinct integers, nums, return all possible subsets (the power set).Note: The solution set must not contain duplicate subsets.Example:Input: nums = [1,2,3]Output:[ [3], ...

2020-01-04 10:27:31 53

原创 【LeetCode 18】4Sum

题目描述:Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum ...

2020-01-02 14:13:25 70

原创 【LeetCode 15】3Sum

题目描述Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note:The solution set must not c...

2020-01-02 13:15:00 70

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除