Feiyang's Blogs


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Search

LeetCode 905. Sort Array By Parity

Posted on 2020-08-31 | In Leetcode
Words count in article: 256 | Reading time ≈ 1
题目Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A. You may ...
Read more »

LeetCode 143. Reorder List

Posted on 2020-08-28 | In Leetcode
Words count in article: 252 | Reading time ≈ 1
题目Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You may not modify the values in the list’s nodes, only nodes i ...
Read more »

LeetCode 824. Goat Latin

Posted on 2020-08-28 | In Leetcode
Words count in article: 386 | Reading time ≈ 2
题目A sentence S is given, composed of words separated by spaces. Each word consists of lowercase and uppercase letters only. We would like to convert t ...
Read more »

LeetCode 967. Numbers With Same Consecutive Differences

Posted on 2020-08-26 | In Leetcode
Words count in article: 225 | Reading time ≈ 1
题目Return all non-negative integers of length N such that the absolute difference between every two consecutive digits is K. Note that every number in ...
Read more »

LeetCode 1103. Distribute Candies to People

Posted on 2020-08-26 | In Leetcode
Words count in article: 354 | Reading time ≈ 2
题目We distribute some number of candies, to a row of n = num_people people in the following way: We then give 1 candy to the first person, 2 candies to ...
Read more »

LeetCode 435. Non-overlapping Intervals

Posted on 2020-08-26 | In Leetcode
Words count in article: 206 | Reading time ≈ 1
题目Given a collection of intervals, find the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping. Example ...
Read more »

LeetCode 409. Longest Palindrome

Posted on 2020-08-14 | In Leetcode
Words count in article: 295 | Reading time ≈ 1
题目Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. Th ...
Read more »

LeetCode 1286. Iterator for Combination

Posted on 2020-08-13 | In Leetcode
Words count in article: 208 | Reading time ≈ 1
题目Design an Iterator class, which has: A constructor that takes a string characters of sorted distinct lowercase English letters and a number combina ...
Read more »

LeetCode 119. Pascal's Triangle II

Posted on 2020-08-12 | In Leetcode
Words count in article: 111 | Reading time ≈ 1
题目Given a non-negative index k where k ≤ 33, return the k^th index row of the Pascal’s triangle. Note that the row index starts from 0. In Pascal’s tr ...
Read more »

LeetCode 274. H-Index

Posted on 2020-08-11 | In Leetcode
Words count in article: 203 | Reading time ≈ 1
题目Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher’s h-index. Accordi ...
Read more »
123…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