加载中...
分类详情
中等 分类
910-最小差值 II(Smallest Range II)
原文链接: https://leetcode-cn.com/problems/smallest-range-ii 英文原文You are given an integer array nums and an integer k. For each index i where 0 <= i < nums.length, change nums[i] to be either nums[i] + k or nums[i] - k. The score of nums is the differenc…
2021-12-03
916-单词子集(Word Subsets)
原文链接: https://leetcode-cn.com/problems/word-subsets 英文原文You are given two string arrays words1 and words2. A string b is a subset of string a if every letter in b occurs in a including multiplicity. For example, "wrr" is a subset of "warrior" but is …
2021-12-03
932-漂亮数组(Beautiful Array)
原文链接: https://leetcode-cn.com/problems/beautiful-array 英文原文An array nums of length n is beautiful if: nums is a permutation of the integers in the range [1, n]. For every 0 <= i < j < n, there is no index k with i < k < j where 2 * nums[k] == nums[i]…
2021-12-03
935-骑士拨号器(Knight Dialer)
原文链接: https://leetcode-cn.com/problems/knight-dialer 英文原文The chess knight has a unique movement, it may move two squares vertically and one square horizontally, or two squares horizontally and one square vertically (with both forming the shape of an …
2021-12-03
946-验证栈序列(Validate Stack Sequences)
原文链接: https://leetcode-cn.com/problems/validate-stack-sequences 英文原文Given two integer arrays pushed and popped each with distinct values, return true if this could have been the result of a sequence of push and pop operations on an initially empty st…
2021-12-03
948-令牌放置(Bag of Tokens)
原文链接: https://leetcode-cn.com/problems/bag-of-tokens 英文原文You have an initial power of power, an initial score of 0, and a bag of tokens where tokens[i] is the value of the ith token (0-indexed). Your goal is to maximize your total score by potentiall…
2021-12-03