09 2020 档案

摘要:Word Break (M) 题目 Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a sp 阅读全文
posted @ 2020-09-29 17:08 墨云黑 阅读(213) 评论(0) 推荐(0)
摘要:Subarray Product Less Than K (M) 题目 Your are given an array of positive integers nums. Count and print the number of (contiguous) subarrays where the 阅读全文
posted @ 2020-09-28 22:55 墨云黑 阅读(192) 评论(0) 推荐(0)
摘要:Evaluate Division (M) 题目 You are given equations in the format A / B = k, where A and B are variables represented as strings, and k is a real number ( 阅读全文
posted @ 2020-09-28 13:13 墨云黑 阅读(95) 评论(0) 推荐(0)
摘要:Teemo Attacking (M) 题目 In LOL world, there is a hero called Teemo and his attacking can make his enemy Ashe be in poisoned condition. Now, given the T 阅读全文
posted @ 2020-09-26 23:50 墨云黑 阅读(175) 评论(0) 推荐(0)
摘要:Largest Number (M) 题目 Given a list of non negative integers, arrange them such that they form the largest number. Example 1: Input: [10,2] Output: "21 阅读全文
posted @ 2020-09-25 23:25 墨云黑 阅读(168) 评论(0) 推荐(0)
摘要:Find the Difference (E) 题目 Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and t 阅读全文
posted @ 2020-09-24 20:55 墨云黑 阅读(178) 评论(0) 推荐(0)
摘要:Gas Station (M) 题目 There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited g 阅读全文
posted @ 2020-09-24 10:21 墨云黑 阅读(197) 评论(0) 推荐(0)
摘要:Majority Element II (M) 题目 Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. Note: The algorithm should run in 阅读全文
posted @ 2020-09-22 21:45 墨云黑 阅读(129) 评论(0) 推荐(0)
摘要:Car Pooling (M) 题目 You are driving a vehicle that has capacity empty seats initially available for passengers. The vehicle only drives east (ie. it ca 阅读全文
posted @ 2020-09-21 22:21 墨云黑 阅读(225) 评论(0) 推荐(0)
摘要:Unique Paths III (H) 题目 On a 2-dimensional grid, there are 4 types of squares: 1 represents the starting square. There is exactly one starting square. 阅读全文
posted @ 2020-09-20 21:46 墨云黑 阅读(189) 评论(0) 推荐(0)
摘要:Sequential Digits (M) 题目 An integer has sequential digits if and only if each digit in the number is one more than the previous digit. Return a sorted 阅读全文
posted @ 2020-09-19 22:11 墨云黑 阅读(198) 评论(0) 推荐(0)
摘要:Best Time to Buy and Sell Stock (E) 题目 Say you have an array for which the \(i^{th}\) element is the price of a given stock on day i. If you were only 阅读全文
posted @ 2020-09-18 16:56 墨云黑 阅读(155) 评论(0) 推荐(0)
摘要:Robot Bounded In Circle (M) 题目 On an infinite plane, a robot initially stands at (0, 0) and faces north. The robot can receive one of three instructio 阅读全文
posted @ 2020-09-17 21:04 墨云黑 阅读(316) 评论(0) 推荐(0)
摘要:Maximum XOR of Two Numbers in an Array (M) 题目 Given a non-empty array of numbers, a0, a1, a2, … , an-1, where 0 ≤ ai < 231. Find the maximum result of 阅读全文
posted @ 2020-09-16 22:22 墨云黑 阅读(163) 评论(0) 推荐(0)
摘要:Combination Sum III (M) 题目 Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and 阅读全文
posted @ 2020-09-13 09:47 墨云黑 阅读(137) 评论(0) 推荐(0)
摘要:Maximum Product Subarray (M) 题目 Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has t 阅读全文
posted @ 2020-09-12 10:01 墨云黑 阅读(187) 评论(0) 推荐(0)
摘要:Compare Version Numbers (M) 题目 Compare two version numbers version1 and version2. If version1 > version2 return 1; if version1 < version2 return -1;ot 阅读全文
posted @ 2020-09-09 20:40 墨云黑 阅读(215) 评论(0) 推荐(0)
摘要:Sum of Root To Leaf Binary Numbers (E) 题目 Given a binary tree, each node has value 0 or 1. Each root-to-leaf path represents a binary number starting 阅读全文
posted @ 2020-09-08 22:22 墨云黑 阅读(117) 评论(0) 推荐(0)
摘要:Image Overlap (M) 题目 Two images A and B are given, represented as binary, square matrices of the same size. (A binary matrix has only 0s and 1s as val 阅读全文
posted @ 2020-09-07 13:34 墨云黑 阅读(301) 评论(0) 推荐(0)
摘要:All Elements in Two Binary Search Trees (M) 题目 Given two binary search trees root1 and root2. Return a list containing all the integers from both tree 阅读全文
posted @ 2020-09-06 09:59 墨云黑 阅读(159) 评论(0) 推荐(0)
摘要:Partition Labels (M) 题目 A string S of lowercase English letters is given. We want to partition this string into as many parts as possible so that each 阅读全文
posted @ 2020-09-05 10:04 墨云黑 阅读(193) 评论(0) 推荐(0)
摘要:Repeated Substring Pattern (E) 题目 Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of 阅读全文
posted @ 2020-09-03 20:16 墨云黑 阅读(165) 评论(0) 推荐(0)
摘要:Contains Duplicate III (M) 题目 Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute 阅读全文
posted @ 2020-09-02 23:06 墨云黑 阅读(167) 评论(0) 推荐(0)
摘要:Largest Time for Given Digits (E) 题目 Given an array of 4 digits, return the largest 24 hour time that can be made. The smallest 24 hour time is 00:00, 阅读全文
posted @ 2020-09-02 09:26 墨云黑 阅读(182) 评论(0) 推荐(0)