leetcode.cn 2025-10-24
🟡2048.next-greater-numerically-balanced-number
🏷️ Tags
#hash_table #math #backtracking #counting #enumeration
🟡2048.next-greater-numerically-balanced-number
🏷️ Tags
#hash_table #math #backtracking #counting #enumeration
Telegraph
next-greater-numerically-balanced-number
如果整数 x 满足:对于每个数位 d ,这个数位 恰好 在 x 中出现 d 次。那么整数 x 就是一个 数值平衡数 。 给你一个整数 n ,请你返回 严格大于 n 的 最小数值平衡数 。 示例 1: 输入:n = 1 输出:22 解释: 22 是一个数值平衡数,因为: - 数字 2 出现 2 次 这也是严格大于 1 的最小数值平衡数。 示例 2: 输入:n = 1000 输出:1333 解释: 1333 是一个数值平衡数,因为: - 数字 1 出现 1 次。 - 数字 3 出现 3 次。 这也是严格大于…
leetcode.com 2025-10-24
🟡2048.next-greater-numerically-balanced-number
🏷️ Tags
#hash_table #math #backtracking #counting #enumeration
🟡2048.next-greater-numerically-balanced-number
🏷️ Tags
#hash_table #math #backtracking #counting #enumeration
Telegraph
next-greater-numerically-balanced-number
An integer x is numerically balanced if for every digit d in the number x, there are exactly d occurrences of that digit in x. Given an integer n, return the smallest numerically balanced number strictly greater than n. Example 1: Input: n = 1 Output: 22…
leetcode.cn 2025-12-29
🟡756.pyramid-transition-matrix
🏷️ Tags
#bit_manipulation #hash_table #string #backtracking
🟡756.pyramid-transition-matrix
🏷️ Tags
#bit_manipulation #hash_table #string #backtracking
Telegraph
pyramid-transition-matrix
你正在把积木堆成金字塔。每个块都有一个颜色,用一个字母表示。每一行的块比它下面的行 少一个块 ,并且居中。 为了使金字塔美观,只有特定的 三角形图案 是允许的。一个三角形的图案由 两个块 和叠在上面的 单个块 组成。模式是以三个字母字符串的列表形式 allowed 给出的,其中模式的前两个字符分别表示左右底部块,第三个字符表示顶部块。
leetcode.com 2025-12-29
🟡756.pyramid-transition-matrix
🏷️ Tags
#bit_manipulation #hash_table #string #backtracking
🟡756.pyramid-transition-matrix
🏷️ Tags
#bit_manipulation #hash_table #string #backtracking
Telegraph
pyramid-transition-matrix
You are stacking blocks to form a pyramid. Each block has a color, which is represented by a single letter. Each row of blocks contains one less block than the row beneath it and is centered on top. To make the pyramid aesthetically pleasing, there are only…
leetcode.cn 2026-03-08
🟡1980.find-unique-binary-string
🏷️ Tags
#array #hash_table #string #backtracking
🟡1980.find-unique-binary-string
🏷️ Tags
#array #hash_table #string #backtracking
Telegraph
find-unique-binary-string
给你一个字符串数组 nums ,该数组由 n 个 互不相同 的二进制字符串组成,且每个字符串长度都是 n 。请你找出并返回一个长度为 n 且 没有出现 在 nums 中的二进制字符串。如果存在多种答案,只需返回 任意一个 即可。 示例 1: 输入:nums = ["01","10"] 输出:"11" 解释:"11" 没有出现在 nums 中。"00" 也是正确答案。 示例 2: 输入:nums = ["00","01"] 输出:"11" 解释:"11" 没有出现在 nums 中。"10" 也是正确答案。…
leetcode.cn 2026-03-14
🟡1415.the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
🏷️ Tags
#string #backtracking
🟡1415.the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
🏷️ Tags
#string #backtracking
Telegraph
the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
一个 「开心字符串」定义为:
leetcode.com 2026-03-14
🟡1415.the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
🏷️ Tags
#string #backtracking
🟡1415.the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
🏷️ Tags
#string #backtracking
Telegraph
the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
A happy string is a string that: