Feiyang's Blogs


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Search

LeetCode 441. Arranging Coins

Posted on 2020-07-01 | In Leetcode
Words count in article: 124 | Reading time ≈ 1
题目You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total numb ...
Read more »

LeetCode 212. Word Search II

Posted on 2020-06-30 | In Leetcode
Words count in article: 364 | Reading time ≈ 2
题目Given a 2D board and a list of words from the dictionary, find all words in the board. Each word must be constructed from letters of sequentially ad ...
Read more »

LeetCode 62. Unique Paths

Posted on 2020-06-29 | In Leetcode
Words count in article: 251 | Reading time ≈ 1
题目A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below). The robot can only move either down or right at any ...
Read more »

LeetCode 332. Reconstruct Itinerary

Posted on 2020-06-29 | In Leetcode
Words count in article: 305 | Reading time ≈ 1
题目Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in order. All of the ti ...
Read more »

LeetCode 279. Perfect Squares

Posted on 2020-06-28 | In Leetcode
Words count in article: 258 | Reading time ≈ 1
题目Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. Example 1: 123Input: n = ...
Read more »

LeetCode 129. Sum Root to Leaf Numbers

Posted on 2020-06-26 | In Leetcode
Words count in article: 261 | Reading time ≈ 1
题目Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2-&g ...
Read more »

LeetCode 287. Find the Duplicate Number

Posted on 2020-06-25 | In Leetcode
Words count in article: 167 | Reading time ≈ 1
题目Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist ...
Read more »

LeetCode 96. Unique Binary Search Trees

Posted on 2020-06-24 | In Leetcode
Words count in article: 115 | Reading time ≈ 1
题目Given n, how many structurally unique BST’s (binary search trees) that store values 1 … n? Example: 12345678910Input: 3Output: 5Explanation:Given n ...
Read more »

LeetCode 222. Count Complete Tree Nodes

Posted on 2020-06-23 | In Leetcode
Words count in article: 222 | Reading time ≈ 1
题目Given a complete binary tree, count the number of nodes. Note: Definition of a complete binary tree from Wikipedia:In a complete binary tree every l ...
Read more »

LeetCode 137. Single Number II

Posted on 2020-06-23 | In Leetcode
Words count in article: 409 | Reading time ≈ 1
题目Given a non-empty array of integers, every element appears three times except for one, which appears exactly once. Find that single one. Note: Your ...
Read more »
1…678…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