Feiyang's Blogs


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Search

LeetCode 78. Subsets

Posted on 2020-07-11 | In Leetcode
Words count in article: 81 | Reading time ≈ 1
题目Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not contain duplicate subsets. Exam ...
Read more »

LeetCode 430. Flatten a Multilevel Doubly Linked List

Posted on 2020-07-11 | In Leetcode
Words count in article: 455 | Reading time ≈ 2
题目You are given a doubly linked list which in addition to the next and previous pointers, it could have a child pointer, which may or may not point to ...
Read more »

LeetCode 662. Maximum Width of Binary Tree

Posted on 2020-07-09 | In Leetcode
Words count in article: 300 | Reading time ≈ 1
题目Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maximum width among all levels. The bin ...
Read more »

LeetCode 15. 3Sum

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

LeetCode 463. Island Perimeter

Posted on 2020-07-07 | In Leetcode
Words count in article: 260 | Reading time ≈ 1
题目You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/ ...
Read more »

LeetCode 66. Plus One

Posted on 2020-07-06 | In Leetcode
Words count in article: 153 | Reading time ≈ 1
题目Given a non-empty array of digits representing a non-negative integer, plus one to the integer. The digits are stored such that the most significant ...
Read more »

LeetCode 461. Hamming Distance

Posted on 2020-07-05 | In Leetcode
Words count in article: 94 | Reading time ≈ 1
题目The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calc ...
Read more »

LeetCode 264. Ugly Number II

Posted on 2020-07-04 | In Leetcode
Words count in article: 141 | Reading time ≈ 1
题目Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. Example: 123Input: n = 10 ...
Read more »

LeetCode 957. Prison Cells After N Days

Posted on 2020-07-03 | In Leetcode
Words count in article: 345 | Reading time ≈ 2
题目There are 8 prison cells in a row, and each cell is either occupied or vacant. Each day, whether the cell is occupied or vacant changes according to ...
Read more »

LeetCode 107. Binary Tree Level Order Traversal II

Posted on 2020-07-03 | In Leetcode
Words count in article: 152 | Reading time ≈ 1
题目Given a binary tree, return the bottom-up level order traversal of its nodes’ values. (ie, from left to right, level by level from leaf to root). Fo ...
Read more »
1…567…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