Feiyang's Blogs


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Search

LeetCode 79. Word Search

Posted on 2020-07-21 | In Leetcode
Words count in article: 280 | Reading time ≈ 1
题目Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where “adj ...
Read more »

LeetCode 203. Remove Linked List Elements

Posted on 2020-07-20 | In Leetcode
Words count in article: 126 | Reading time ≈ 1
题目Remove all elements from a linked list of integers that have value val. Example: 12Input: 1->2->6->3->4->5->6, val = 6Output: 1-& ...
Read more »

LeetCode 67. Add Binary

Posted on 2020-07-19 | In Leetcode
Words count in article: 124 | Reading time ≈ 1
题目Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Example ...
Read more »

LeetCode 210. Course Schedule II

Posted on 2020-07-19 | In Leetcode
Words count in article: 353 | Reading time ≈ 2
题目There are a total of n courses you have to take, labeled from 0 to n-1. Some courses may have prerequisites, for example to take course 0 you have t ...
Read more »

LeetCode 347. Top K Frequent Elements

Posted on 2020-07-17 | In Leetcode
Words count in article: 359 | Reading time ≈ 2
题目Given a non-empty array of integers, return the k most frequent elements. Example 1: 12Input: nums = [1,1,1,2,2,3], k = 2Output: [1,2] Example 2: 1 ...
Read more »

LeetCode 50. Pow(x, n)

Posted on 2020-07-16 | In Leetcode
Words count in article: 123 | Reading time ≈ 1
题目Implement pow(x, n), which calculates x raised to the power n (x^n). Example 1: 12Input: 2.00000, 10Output: 1024.00000 Example 2: 12Input: 2.10000, ...
Read more »

LeetCode 151. Reverse Words in a String

Posted on 2020-07-15 | In Leetcode
Words count in article: 169 | Reading time ≈ 1
题目Given an input string, reverse the string word by word. Example 1: 12Input: "the sky is blue"Output: "blue is sky the" Example ...
Read more »

LeetCode 1344. Angle Between Hands of a Clock

Posted on 2020-07-14 | In Leetcode
Words count in article: 131 | Reading time ≈ 1
题目Given two numbers, hour and minutes. Return the smaller angle (in degrees) formed between the hour and the minute hand. Example 1: 12Input: hour = 1 ...
Read more »

LeetCode 100. Same Tree

Posted on 2020-07-13 | In Leetcode
Words count in article: 160 | Reading time ≈ 1
题目Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally ide ...
Read more »

LeetCode 190. Reverse Bits

Posted on 2020-07-12 | In Leetcode
Words count in article: 241 | Reading time ≈ 1
题目Reverse bits of a given 32 bits unsigned integer. Example 1: 123Input: 00000010100101000001111010011100Output: 00111001011110000010100101000000Expla ...
Read more »
1…456…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