自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 1389. Create Target Array in the Given Order*

1389. Create Target Array in the Given Order*https://leetcode.com/problems/create-target-array-in-the-given-order/题目描述Given two arrays of integers nums and index. Your task is to create target arra...

2020-03-31 21:40:31 653

原创 1313. Decompress Run-Length Encoded List*

1313. Decompress Run-Length Encoded List*https://leetcode.com/problems/decompress-run-length-encoded-list/题目描述We are given a list nums of integers representing a list compressed with run-length enc...

2020-03-31 21:18:03 366

原创 1288. Remove Covered Intervals**

1288. Remove Covered Intervals**https://leetcode.com/problems/remove-covered-intervals/题目描述Given a list of intervals, remove all intervals that are covered by another interval in the list. Interval...

2020-03-31 09:01:00 562

原创 739. Daily Temperatures**

739. Daily Temperatures**https://leetcode.com/problems/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 w...

2020-03-31 08:15:28 276

原创 912. Sort an Array**

912. Sort an Array**https://leetcode.com/problems/sort-an-array/题目描述Given an array of integers nums, sort the array in ascending order.Example 1:Input: nums = [5,2,3,1]Output: [1,2,3,5]Example...

2020-03-30 08:08:19 249

原创 1342. Number of Steps to Reduce a Number to Zero*

1342. Number of Steps to Reduce a Number to Zero*https://leetcode.com/problems/number-of-steps-to-reduce-a-number-to-zero/题目描述Given a non-negative integer num, return the number of steps to reduce ...

2020-03-30 07:34:17 369

原创 623. Add One Row to Tree**

623. Add One Row to Tree**https://leetcode.com/problems/add-one-row-to-tree/题目描述Given the root of a binary tree, then value v and depth d, you need to add a row of nodes with value v at the given d...

2020-03-30 07:29:28 312

原创 951. Flip Equivalent Binary Trees**

951. Flip Equivalent Binary Trees**https://leetcode.com/problems/flip-equivalent-binary-trees/题目描述For a binary tree T, we can define a flip operation as follows: choose any node, and swap the left ...

2020-03-29 09:25:23 228

原创 861. Score After Flipping Matrix**

861. Score After Flipping Matrix**https://leetcode.com/problems/score-after-flipping-matrix/题目描述We have a two dimensional matrix A where each value is 0 or 1.A move consists of choosing any row or...

2020-03-29 08:58:35 237

原创 986. Interval List Intersections**

986. Interval List Intersections**https://leetcode.com/problems/interval-list-intersections/题目描述Given two lists of closed intervals, each list of intervals is pairwise disjoint and in sorted order....

2020-03-29 08:49:18 261

原创 1161. Maximum Level Sum of a Binary Tree**

1161. Maximum Level Sum of a Binary Tree**https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/题目描述Given the root of a binary tree, the level of its root is 1, the level of its children...

2020-03-28 22:33:51 258

原创 921. Minimum Add to Make Parentheses Valid**

921. Minimum Add to Make Parentheses Valid**https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/题目描述Given a string S of '(' and ')' parentheses, we add the minimum number of parenth...

2020-03-28 22:10:18 222

原创 338. Counting Bits**

338. Counting Bits**https://leetcode.com/problems/counting-bits/题目描述Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1’s in their binary...

2020-03-27 08:51:28 250

原创 191. Number of 1 Bits*

191. Number of 1 Bits*https://leetcode.com/problems/number-of-1-bits/题目描述Write a function that takes an unsigned integer and return the number of ‘1’ bits it has (also known as the Hamming weight)....

2020-03-27 08:50:32 303

原创 198. House Robber*

198. House Robber*https://leetcode.com/problems/house-robber/题目描述You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only cons...

2020-03-26 23:47:26 232

原创 797. All Paths From Source to Target**

797. All Paths From Source to Target**https://leetcode.com/problems/all-paths-from-source-to-target/题目描述Given a directed, acyclic graph of N nodes. Find all possible paths from node 0 to node N-1,...

2020-03-26 08:14:37 266

原创 763. Partition Labels**

763. Partition Labels**https://leetcode.com/problems/partition-labels/题目描述A string S of lowercase letters is given. We want to partition this string into as many parts as possible so that each lett...

2020-03-25 23:14:11 213

原创 1382. Balance a Binary Search Tree**

1382. Balance a Binary Search Tree**https://leetcode.com/problems/balance-a-binary-search-tree/题目描述Given a binary search tree, return a balanced binary search tree with the same node values.A bina...

2020-03-25 13:12:31 509

原创 1038. Binary Search Tree to Greater Sum Tree**

1038. Binary Search Tree to Greater Sum Tree**https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/题目描述Given the root of a binary search tree with distinct values, modify it so that...

2020-03-25 12:55:52 281

原创 1282. Group the People Given the Group Size They Belong To**

1282. Group the People Given the Group Size They Belong To**https://leetcode.com/problems/group-the-people-given-the-group-size-they-belong-to/题目描述There are n people whose IDs go from 0 to n - 1 an...

2020-03-25 09:23:31 429

原创 70. Climbing Stairs*

70. Climbing Stairs*https://leetcode.com/problems/climbing-stairs/题目描述You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many d...

2020-03-25 08:13:18 242

原创 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree**

1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree**https://leetcode.com/problems/find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree/题目描述Given two binary trees...

2020-03-25 08:04:46 580

原创 1137. N-th Tribonacci Number*

1137. N-th Tribonacci Number*https://leetcode.com/problems/n-th-tribonacci-number/题目描述The Tribonacci sequence Tn is defined as follows:T0 = 0, T1 = 1, T2 = 1, and Tn+3 = Tn + Tn+1 + Tn+2 for n &gt...

2020-03-24 23:14:57 323

原创 172. Factorial Trailing Zeroes*

172. Factorial Trailing Zeroes*https://leetcode.com/problems/factorial-trailing-zeroes/题目描述Given an integer n, return the number of trailing zeroes in n!.Example 1:Input: 3Output: 0Explanation:...

2020-03-24 09:15:03 209

原创 300. Longest Increasing Subsequence**

300. Longest Increasing Subsequence**https://leetcode.com/problems/longest-increasing-subsequence/题目描述Given an unsorted array of integers, find the length of longest increasing subsequence.Example...

2020-03-24 09:00:27 230

原创 278. First Bad Version*

278. First Bad Version*https://leetcode.com/problems/first-bad-version/题目描述You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your...

2020-03-23 23:17:08 241

原创 367. Valid Perfect Square*

367. Valid Perfect Square*https://leetcode.com/problems/valid-perfect-square/题目描述Given a positive integer num, write a function which returns True if num is a perfect square else False.Note: Do no...

2020-03-23 19:54:01 270

原创 374. Guess Number Higher or Lower*

374. Guess Number Higher or Lower*https://leetcode.com/problems/guess-number-higher-or-lower/题目描述We are playing the Guess Game. The game is as follows:I pick a number from 1 to n. You have to gues...

2020-03-23 12:40:30 275

原创 744. Find Smallest Letter Greater Than Target*

744. Find Smallest Letter Greater Than Target*https://leetcode.com/problems/find-smallest-letter-greater-than-target/题目描述Given a list of sorted characters letters containing only lowercase letters,...

2020-03-23 12:23:17 211

原创 392. Is Subsequence*

392. Is Subsequence*https://leetcode.com/problems/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...

2020-03-23 07:33:44 232

原创 704. Binary Search*

704. Binary Search*https://leetcode.com/problems/binary-search/题目描述Given a sorted (in ascending order) integer array nums of n elements and a target value, write a function to search target in nums...

2020-03-23 07:12:50 245

原创 1337. The K Weakest Rows in a Matrix*

1337. The K Weakest Rows in a Matrix*https://leetcode.com/problems/the-k-weakest-rows-in-a-matrix/题目描述Given a m * n matrix mat of ones (representing soldiers) and zeros (representing civilians), re...

2020-03-22 09:52:07 368

原创 852. Peak Index in a Mountain Array*

852. Peak Index in a Mountain Array*https://leetcode.com/problems/peak-index-in-a-mountain-array/题目描述Let’s call an array A a mountain if the following properties hold:A.length >= 3There exist...

2020-03-22 09:00:06 226

原创 1351. Count Negative Numbers in a Sorted Matrix*

1351. Count Negative Numbers in a Sorted Matrix*https://leetcode.com/problems/count-negative-numbers-in-a-sorted-matrix/题目描述Given a m * n matrix grid which is sorted in non-increasing order both ro...

2020-03-22 08:39:44 661

原创 203. Remove Linked List Elements*

203. Remove Linked List Elements*https://leetcode.com/problems/remove-linked-list-elements/题目描述Remove all elements from a linked list of integers that have value val.Example:Input: 1->2->6...

2020-03-21 15:39:34 198

原创 234. Palindrome Linked List*

234. Palindrome Linked List*https://leetcode.com/problems/palindrome-linked-list/题目描述Given a singly linked list, determine if it is a palindrome.Example 1:Input: 1->2Output: falseExample 2:...

2020-03-21 15:34:02 199

原创 25. Reverse Nodes in k-Group***

25. Reverse Nodes in k-Group***https://leetcode.com/problems/reverse-nodes-in-k-group/题目描述Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.k is a po...

2020-03-21 15:15:59 257

原创 61. Rotate List**

61. Rotate List**https://leetcode.com/problems/rotate-list/题目描述Given a linked list, rotate the list to the right by k places, where k is non-negative.Example 1:Input: 1->2->3->4->5-&g...

2020-03-21 10:26:08 188

原创 2. Add Two Numbers**

2. Add Two Numbers**https://leetcode.com/problems/add-two-numbers/题目描述You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and eac...

2020-03-21 09:15:33 198

原创 143. Reorder List**

143. Reorder List**https://leetcode.com/problems/reorder-list/题目描述Given a singly linked list L: L0 -> L1 -> … -> Ln-1 -> Ln,reorder it to: L0 -> Ln -> L1 -> Ln-1 -> L2 -&gt...

2020-03-20 23:19:26 172

空空如也

空空如也

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

TA关注的人

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