Feiyang's Blogs


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Search

LeetCode 70. Climbing Stairs

Posted on 2020-07-31 | In Leetcode
Words count in article: 136 | Reading time ≈ 1
题目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 distinct ways can you ...
Read more »

LeetCode 140. Word Break II

Posted on 2020-07-30 | In Leetcode
Words count in article: 260 | Reading time ≈ 1
题目Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word i ...
Read more »

LeetCode 309. Best Time to Buy and Sell Stock with Cooldown

Posted on 2020-07-30 | In Leetcode
Words count in article: 174 | Reading time ≈ 1
题目Say you have an array for which the i^th element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may com ...
Read more »

LeetCode 621. Task Scheduler

Posted on 2020-07-29 | In Leetcode
Words count in article: 463 | Reading time ≈ 2
题目You are given a char array representing tasks CPU need to do. It contains capital letters A to Z where each letter represents a different task. Task ...
Read more »

LeetCode 106. Construct Binary Tree from Inorder and Postorder Traversal

Posted on 2020-07-27 | In Leetcode
Words count in article: 140 | Reading time ≈ 1
题目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 examp ...
Read more »

LeetCode 258. Add Digits

Posted on 2020-07-27 | In Leetcode
Words count in article: 85 | Reading time ≈ 1
题目Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. Example: 1234Input: 38Output: 2 Explanation: Th ...
Read more »

LeetCode 154. Find Minimum in Rotated Sorted Array II

Posted on 2020-07-25 | In Leetcode
Words count in article: 193 | Reading time ≈ 1
题目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] ...
Read more »

LeetCode 797. All Paths From Source to Target

Posted on 2020-07-24 | In Leetcode
Words count in article: 192 | Reading time ≈ 1
题目Given a directed, acyclic graph of N nodes. Find all possible paths from node 0 to node N-1, and return them in any order. The graph is given as fo ...
Read more »

LeetCode 260. Single Number III

Posted on 2020-07-23 | In Leetcode
Words count in article: 263 | Reading time ≈ 1
题目Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two element ...
Read more »

LeetCode 103. Binary Tree Zigzag Level Order Traversal

Posted on 2020-07-22 | In Leetcode
Words count in article: 156 | Reading time ≈ 1
题目Given a binary tree, return the zigzag level order traversal of its nodes’ values. (ie, from left to right, then right to left for the next level an ...
Read more »
1…345…17
Feiyang Chen

Feiyang Chen

170 posts
7 categories
16 tags
RSS
GitHub E-Mail
Friends' Links
  • asdfv1929's Home
© 2020 Feiyang Chen | Site words total count: 92.1k