加载中...
分类详情
困难 分类
815-公交路线(Bus Routes)
原文链接: https://leetcode-cn.com/problems/bus-routes 英文原文You are given an array routes representing bus routes where routes[i] is a bus route that the ith bus repeats forever. For example, if routes[0] = [1, 5, 7], this means that the 0th bus travels in…
2021-12-03
818-赛车(Race Car)
原文链接: https://leetcode-cn.com/problems/race-car 英文原文Your car starts at position 0 and speed +1 on an infinite number line. Your car can go into negative positions. Your car drives automatically according to a sequence of instructions 'A' (accelerate)…
2021-12-03
829-连续整数求和(Consecutive Numbers Sum)
原文链接: https://leetcode-cn.com/problems/consecutive-numbers-sum 英文原文Given an integer n, return the number of ways you can write n as the sum of consecutive positive integers. Example 1: Input: n = 5 Output: 2 Explanation: 5 = 2 + 3 Example 2: Input: n…
2021-12-03
879-盈利计划(Profitable Schemes)
原文链接: https://leetcode-cn.com/problems/profitable-schemes 英文原文There is a group of n members, and a list of various crimes they could commit. The ith crime generates a profit[i] and requires group[i] members to participate in it. If a member participa…
2021-12-03
887-鸡蛋掉落(Super Egg Drop)
原文链接: https://leetcode-cn.com/problems/super-egg-drop 英文原文You are given k identical eggs and you have access to a building with n floors labeled from 1 to n. You know that there exists a floor f where 0 <= f <= n such that any egg dropped at a floor …
2021-12-03
899-有序队列(Orderly Queue)
原文链接: https://leetcode-cn.com/problems/orderly-queue 英文原文You are given a string s and an integer k. You can choose one of the first k letters of s and append it at the end of the string.. Return the lexicographically smallest string you could have af…
2021-12-03
906-超级回文数(Super Palindromes)
原文链接: https://leetcode-cn.com/problems/super-palindromes 英文原文Let's say a positive integer is a super-palindrome if it is a palindrome, and it is also the square of a palindrome. Given two positive integers left and right represented as strings, retur…
2021-12-03
927-三等分(Three Equal Parts)
原文链接: https://leetcode-cn.com/problems/three-equal-parts 英文原文You are given an array arr which consists of only zeros and ones, divide the array into three non-empty parts such that all of these parts represent the same binary value. If it is possible…
2021-12-03