加载中...
分类详情
中等 分类
1291-顺次数(Sequential Digits)
原文链接: https://leetcode-cn.com/problems/sequential-digits 英文原文An integer has sequential digits if and only if each digit in the number is one more than the previous digit. Return a sorted list of all the integers in the range [low, high] inclusive tha…
2021-12-03
1116-打印零与奇偶数(Print Zero Even Odd)
原文链接: https://leetcode-cn.com/problems/print-zero-even-odd 英文原文You have a function printNumber that can be called with an integer parameter and prints it to the console. For example, calling printNumber(7) prints 7 to the console. You are given an in…
2021-12-03
1314-矩阵区域和(Matrix Block Sum)
原文链接: https://leetcode-cn.com/problems/matrix-block-sum 英文原文Given a m x n matrix mat and an integer k, return a matrix answer where each answer[i][j] is the sum of all elements mat[r][c] for: i - k <= r <= i + k, j - k <= c <= j + k, and (r, c) is a …
2021-12-03
1328-破坏回文串(Break a Palindrome)
原文链接: https://leetcode-cn.com/problems/break-a-palindrome 英文原文Given a palindromic string of lowercase English letters palindrome, replace exactly one character with any lowercase English letter so that the resulting string is not a palindrome and tha…
2021-12-03
1362-最接近的因数(Closest Divisors)
原文链接: https://leetcode-cn.com/problems/closest-divisors 英文原文Given an integer num, find the closest two integers in absolute difference whose product equals num + 1 or num + 2. Return the two integers in any order. Example 1: Input: num = 8 Output: [3…
2021-12-03