10 2017 档案
摘要:原题链接在这里:https://leetcode.com/problems/subarray-product-less-than-k/description/ 题目: Your are given an array of positive integers nums. Count and print
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/subarray-sum-equals-k/description/ 题目: Given an array of integers and an integer k, you need to find the total n
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/task-scheduler/description/ 题目: Given a char array representing tasks CPU need to do. It contains capital letter
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/max-area-of-island/ 题目: Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representin
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/degree-of-an-array/description/ 题目: Given a non-empty array of non-negative integers nums, the degree of this ar
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/ipo/description/ 题目: Suppose LeetCode will start its IPO soon. In order to sell a good price of its shares to Ve
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/rearrange-string-k-distance-apart/description/ 题目: Given a non-empty string s and an integer k, rearrange the st
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/design-twitter/description/ 题目: Design a simplified version of Twitter where users can post tweets, follow/unfol
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/split-array-into-consecutive-subsequences/description/ 题目: You are given an integer array sorted in ascending or
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/top-k-frequent-words/description/ 题目: Given a non-empty list of words, return the k most frequent elements. Your
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/next-greater-element-iii/description/ 题目: Given a positive 32-bit integer n, you need to find the smallest 32-bi
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/mini-parser/description/ 题目: Given a nested list of integers represented as a string, implement a parser to dese
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/delete-operation-for-two-strings/description/ 题目: Given two words word1 and word2, find the minimum number of st
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/complex-number-multiplication/description/ 题目: Given two strings representing two complex numbers. You need to r
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/optimal-division/description/ 题目: Given a list of positive integers, the adjacent integers will perform the floa
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/find-duplicate-file-in-system/description/ 题目: Given a list of directory info including directory path, and all
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/next-closest-time/ 题目: Given a time represented in the format "HH:MM", form the next closest time by reusing the
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/valid-parenthesis-string/description/ 题目: Given a string containing only three types of characters: '(', ')' and
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/add-bold-tag-in-string/description/ 题目: Given a string s and a list of strings dict, you need to add a closed pa
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/decode-ways-ii/description/ 题目: A message containing letters from A-Z is being encoded to numbers using the foll
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/construct-binary-tree-from-string/description/ 题目: You need to construct a binary tree from a string consisting
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/minimum-time-difference/description/ 题目: Given a list of 24-hour clock time points in "Hour:Minutes" format, fin
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/design-log-storage-system/description/ 题目: You are given several logs that each log contains a unique id and tim
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/split-concatenated-strings/description/ 题目: Given a list of strings, you could concatenate these strings togethe
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/count-binary-substrings/description/ 题目: Give a string s, count the number of non-empty (contiguous) substrings
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/repeated-string-match/description/ 题目: Given two strings A and B, find the minimum number of times A has to be r
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/combination-sum-iv/ 题目: Given an integer array with all positive numbers and no duplicates, find the number of p
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/baseball-game/description/ 题目: You're now a baseball game point recorder. Given a list of strings, each string c
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/knight-probability-in-chessboard/description/ 题目: On an NxN chessboard, a knight starts at the r-th row and c-th
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/beautiful-arrangement-ii/description/ 题目: Given two integers n and k, you need to construct a list which contain
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/beautiful-arrangement/ 题目: Suppose you have n integers labeled 1 through n. A permutation of those n integers pe
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/employee-importance/description/ 题目: You are given a data structure of employee information, which includes the
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/wiggle-subsequence/description/ 题目: A sequence of numbers is called a wiggle sequence if the differences between
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/largest-divisible-subset/description/ 题目: Given a set of distinct positive integers, find the largest subset suc
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/arithmetic-slices/description/ 题目: A sequence of number is called arithmetic if it consists of at least three el
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/ones-and-zeroes/description/ 题目: In the computer world, use restricted resource you have to generate maximum ben
阅读全文