加载中...
分类详情
简单 分类
908-最小差值 I(Smallest Range I)
原文链接: https://leetcode-cn.com/problems/smallest-range-i 英文原文You are given an integer array nums and an integer k. In one operation, you can choose any index i where 0 <= i < nums.length and change nums[i] to nums[i] + x where x is an integer from the…
2021-12-03
917-仅仅反转字母(Reverse Only Letters)
原文链接: https://leetcode-cn.com/problems/reverse-only-letters 英文原文Given a string s, reverse the string according to the following rules: All the characters that are not English letters remain in the same position. All the English letters (lowercase or …
2021-12-03
925-长按键入(Long Pressed Name)
原文链接: https://leetcode-cn.com/problems/long-pressed-name 英文原文Your friend is typing his name into a keyboard. Sometimes, when typing a character c, the key might get long pressed, and the character will be typed 1 or more times. You examine the typed …
2021-12-03
941-有效的山脉数组(Valid Mountain Array)
原文链接: https://leetcode-cn.com/problems/valid-mountain-array 英文原文Given an array of integers arr, return true if and only if it is a valid mountain array. Recall that arr is a mountain array if and only if: arr.length >= 3 There exists some i with 0 < …
2021-12-03
944-删列造序(Delete Columns to Make Sorted)
原文链接: https://leetcode-cn.com/problems/delete-columns-to-make-sorted 英文原文You are given an array of n strings strs, all of the same length. The strings can be arranged such that there is one on each line, making a grid. For example, strs = ["abc", "bc…
2021-12-03