Feiyang's Blogs


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Search

LeetCode 226. Invert Binary Tree

Posted on 2020-06-01 | In Leetcode
Words count in article: 128 | Reading time ≈ 1
题目Invert a binary tree. Example: 12345678910111213141516Input: 4 / \ 2 7 / \ / \1 3 6 9Output: 4 / \ 7 2 / \ / \9 ...
Read more »

LeetCode 72. Edit Distance

Posted on 2020-05-31 | In Leetcode
Words count in article: 250 | Reading time ≈ 1
题目Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. You have the following 3 operations permi ...
Read more »

LeetCode 973. K Closest Points to Origin

Posted on 2020-05-30 | In Leetcode
Words count in article: 282 | Reading time ≈ 1
题目We have a list of points on the plane. Find the K closest points to the origin (0, 0). (Here, the distance between two points on a plane is the Euc ...
Read more »

LeetCode 207. Course Schedule

Posted on 2020-05-29 | In Leetcode
Words count in article: 897 | Reading time ≈ 4
题目There are a total of numCourses courses you have to take, labeled from 0 to numCourses-1. Some courses may have prerequisites, for example to take c ...
Read more »

LeetCode 338. Counting Bits

Posted on 2020-05-28 | In Leetcode
Words count in article: 215 | Reading time ≈ 1
题目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 representation and ...
Read more »

LeetCode 886. Possible Bipartition

Posted on 2020-05-27 | In Leetcode
Words count in article: 359 | Reading time ≈ 2
题目Given a set of N people (numbered 1, 2, ..., N), we would like to split everyone into two groups of any size. Each person may dislike some other peo ...
Read more »

LeetCode 525. Contiguous Array

Posted on 2020-05-26 | In Leetcode
Words count in article: 227 | Reading time ≈ 1
题目Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1. Example 1: 123Input: [0,1]Output: 2Explanation: ...
Read more »

LeetCode 1035. Uncrossed Lines

Posted on 2020-05-25 | In Leetcode
Words count in article: 339 | Reading time ≈ 2
题目We write the integers of A and B (in the order they are given) on two separate horizontal lines. Now, we may draw connecting lines: a straight line ...
Read more »

LeetCode 986. Interval List Intersections

Posted on 2020-05-23 | In Leetcode
Words count in article: 282 | Reading time ≈ 1
题目Given two lists of closed intervals, each list of intervals is pairwise disjoint and in sorted order. Return the intersection of these two interval ...
Read more »

LeetCode 451. Sort Characters By Frequency

Posted on 2020-05-22 | In Leetcode
Words count in article: 187 | Reading time ≈ 1
题目Given a string, sort it in decreasing order based on the frequency of characters. Example 1: 123456789Input:"tree"Output:"eert"E ...
Read more »
1…91011…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