摘要:
Problem: https://leetcode.com/problems/search-a-2d-matrix/ Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has 阅读全文
摘要:
Problem: https://leetcode.com/problems/unique-binary-search-trees/ Given n, how many structurally unique BST's (binary search trees) that store values 阅读全文
摘要:
Problem: https://leetcode.com/problems/largest-number/ Given a list of non negative integers, arrange them such that they form the largest number. For 阅读全文
摘要:
Problem :https://leetcode.com/problems/gas-station/ There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. Y 阅读全文
摘要:
Problem: https://leetcode.com/problems/kth-largest-element-in-an-array/ Find the kth largest element in an unsorted array. Note that it is the kth lar 阅读全文
摘要:
Problem: https://leetcode.com/problems/count-primes/ Count the number of prime numbers less than a non-negative number, n. Thought: SieveofEratosthene 阅读全文
摘要:
Problem: https://leetcode.com/problems/jump-game/ Given an array of non-negative integers, you are initially positioned at the first index of the arra 阅读全文
摘要:
Problem: https://leetcode.com/problems/word-break/ Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separ 阅读全文
摘要:
Problem: https://leetcode.com/problems/combination-sum-iii/ Find all possible combinations of k numbers that add up to a number n, given that only num 阅读全文
摘要:
Problem: https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/ Say you have an array for which the ith element is the price of a given sto 阅读全文