Feiyang's Blogs


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Search

LeetCode 278. First Bad Version

Posted on 2020-05-01 | In Leetcode
Words count in article: 215 | Reading time ≈ 1
题目You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality ...
Read more »

LeetCoding Challenge 30/30. Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree

Posted on 2020-04-30 | In Leetcode
Words count in article: 349 | Reading time ≈ 2
题目Given a binary tree where each path going from the root to any leaf form a valid sequence, check if a given string is a valid sequence in such binar ...
Read more »

LeetCode 124. Binary Tree Maximum Path Sum

Posted on 2020-04-29 | In Leetcode
Words count in article: 191 | Reading time ≈ 1
题目Given a non-empty binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to an ...
Read more »

LeetCoding Challenge 28/30. First Unique Number

Posted on 2020-04-28 | In Leetcode
Words count in article: 528 | Reading time ≈ 3
题目You have a queue of integers, you need to retrieve the first unique integer in the queue. Implement the FirstUnique class: FirstUnique(int[] nums) ...
Read more »

LeetCode 221. Maximal Square

Posted on 2020-04-27 | In Leetcode
Words count in article: 382 | Reading time ≈ 2
题目Given a 2D binary matrix filled with 0’s and 1’s, find the largest square containing only 1’s and return its area. Example: 12345678Input: 1 0 1 0 0 ...
Read more »

LeetCode 1143. Longest Common Subsequence

Posted on 2020-04-26 | In Leetcode
Words count in article: 309 | Reading time ≈ 1
题目Given two strings text1 and text2, return the length of their longest common subsequence. A subsequence of a string is a new string generated from t ...
Read more »

LeetCode 55. Jump Game

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

LeetCode 146. LRU Cache

Posted on 2020-04-24 | In Leetcode
Words count in article: 324 | Reading time ≈ 1
题目Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) - Get t ...
Read more »

LeetCode 201. Bitwise AND of Numbers Range

Posted on 2020-04-23 | In Leetcode
Words count in article: 124 | Reading time ≈ 1
题目Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive. Example 1: 12Input: [ ...
Read more »

LeetCode 560. Subarray Sum Equals K

Posted on 2020-04-22 | In Leetcode
Words count in article: 187 | Reading time ≈ 1
题目Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: 12Input:num ...
Read more »
1…121314…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