摘要:
341. Flatten Nested List Iterator Given a nested list of integers, implement an iterator to flatten it. Each element is either an integer, or a list - 阅读全文
摘要:
146. LRU Cache Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get 阅读全文
摘要:
4. Median of Two Sorted Arrays There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The 阅读全文
摘要:
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted f 阅读全文
摘要:
Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n. Given a non-negative integer n, count all numbers with uni 阅读全文
摘要:
Additive number is a string whose digits can form additive sequence. Additive number is a string whose digits can form additive sequence. A valid addi 阅读全文
摘要:
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. Given two integers representing the 阅读全文
摘要:
39. Combination Sum Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums t 阅读全文
摘要:
Given an array of strings, group anagrams together. Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate 阅读全文