leetcode.cn 2025-10-16
🟡2598.smallest-missing-non-negative-integer-after-operations
🏷️ Tags
#greedy #array #hash_table #math
🟡2598.smallest-missing-non-negative-integer-after-operations
🏷️ Tags
#greedy #array #hash_table #math
Telegraph
smallest-missing-non-negative-integer-after-operations
给你一个下标从 0 开始的整数数组 nums 和一个整数 value 。 在一步操作中,你可以对 nums 中的任一元素加上或减去 value 。
leetcode.com 2025-10-16
🟡2598.smallest-missing-non-negative-integer-after-operations
🏷️ Tags
#greedy #array #hash_table #math
🟡2598.smallest-missing-non-negative-integer-after-operations
🏷️ Tags
#greedy #array #hash_table #math
Telegraph
smallest-missing-non-negative-integer-after-operations
You are given a 0-indexed integer array nums and an integer value. In one operation, you can add or subtract value from any element of nums.
leetcode.cn 2025-10-17
🔴3003.maximize-the-number-of-partitions-after-operations
🏷️ Tags
#bit_manipulation #string #dynamic_programming #bitmask
🔴3003.maximize-the-number-of-partitions-after-operations
🏷️ Tags
#bit_manipulation #string #dynamic_programming #bitmask
Telegraph
maximize-the-number-of-partitions-after-operations
给你一个下标从 0 开始的字符串 s 和一个整数 k。 你需要执行以下分割操作,直到字符串 s 变为 空:
leetcode.cn 2025-10-19
🟡1625.lexicographically-smallest-string-after-applying-operations
🏷️ Tags
#depth_first_search #breadth_first_search #string #enumeration
🟡1625.lexicographically-smallest-string-after-applying-operations
🏷️ Tags
#depth_first_search #breadth_first_search #string #enumeration
Telegraph
lexicographically-smallest-string-after-applying-operations
给你一个字符串 s 以及两个整数 a 和 b 。其中,字符串 s 的长度为偶数,且仅由数字 0 到 9 组成。 你可以在 s 上按任意顺序多次执行下面两个操作之一:
leetcode.com 2025-10-19
🟡1625.lexicographically-smallest-string-after-applying-operations
🏷️ Tags
#depth_first_search #breadth_first_search #string #enumeration
🟡1625.lexicographically-smallest-string-after-applying-operations
🏷️ Tags
#depth_first_search #breadth_first_search #string #enumeration
Telegraph
lexicographically-smallest-string-after-applying-operations
You are given a string s of even length consisting of digits from 0 to 9, and two integers a and b. You can apply either of the following two operations any number of times and in any order on s:
leetcode.cn 2025-10-20
🟢2011.final-value-of-variable-after-performing-operations
🏷️ Tags
#array #string #simulation
🟢2011.final-value-of-variable-after-performing-operations
🏷️ Tags
#array #string #simulation
Telegraph
final-value-of-variable-after-performing-operations
存在一种仅支持 4 种操作和 1 个变量 X 的编程语言:
leetcode.com 2025-10-20
🟢2011.final-value-of-variable-after-performing-operations
🏷️ Tags
#array #string #simulation
🟢2011.final-value-of-variable-after-performing-operations
🏷️ Tags
#array #string #simulation
Telegraph
final-value-of-variable-after-performing-operations
There is a programming language with only four operations and one variable X:
leetcode.cn 2025-10-21
🟡3346.maximum-frequency-of-an-element-after-performing-operations-i
🏷️ Tags
#array #binary_search #prefix_sum #sorting #sliding_window
🟡3346.maximum-frequency-of-an-element-after-performing-operations-i
🏷️ Tags
#array #binary_search #prefix_sum #sorting #sliding_window
Telegraph
maximum-frequency-of-an-element-after-performing-operations-i
给你一个整数数组 nums 和两个整数 k 和 numOperations 。 你必须对 nums 执行 操作 numOperations 次。每次操作中,你可以:
leetcode.com 2025-10-21
🟡3346.maximum-frequency-of-an-element-after-performing-operations-i
🏷️ Tags
#array #binary_search #prefix_sum #sorting #sliding_window
🟡3346.maximum-frequency-of-an-element-after-performing-operations-i
🏷️ Tags
#array #binary_search #prefix_sum #sorting #sliding_window
Telegraph
maximum-frequency-of-an-element-after-performing-operations-i
You are given an integer array nums and two integers k and numOperations. You must perform an operation numOperations times on nums, where in each operation you:
leetcode.cn 2025-10-22
🔴3347.maximum-frequency-of-an-element-after-performing-operations-ii
🏷️ Tags
#array #binary_search #prefix_sum #sorting #sliding_window
🔴3347.maximum-frequency-of-an-element-after-performing-operations-ii
🏷️ Tags
#array #binary_search #prefix_sum #sorting #sliding_window
Telegraph
maximum-frequency-of-an-element-after-performing-operations-ii
给你一个整数数组 nums 和两个整数 k 和 numOperations 。 你必须对 nums 执行 操作 numOperations 次。每次操作中,你可以:
leetcode.com 2025-10-22
🔴3347.maximum-frequency-of-an-element-after-performing-operations-ii
🏷️ Tags
#array #binary_search #prefix_sum #sorting #sliding_window
🔴3347.maximum-frequency-of-an-element-after-performing-operations-ii
🏷️ Tags
#array #binary_search #prefix_sum #sorting #sliding_window
Telegraph
maximum-frequency-of-an-element-after-performing-operations-ii
You are given an integer array nums and two integers k and numOperations. You must perform an operation numOperations times on nums, where in each operation you:
leetcode.cn 2025-10-23
🟢3461.check-if-digits-are-equal-in-string-after-operations-i
🏷️ Tags
#math #string #combinatorics #number_theory #simulation
🟢3461.check-if-digits-are-equal-in-string-after-operations-i
🏷️ Tags
#math #string #combinatorics #number_theory #simulation
Telegraph
check-if-digits-are-equal-in-string-after-operations-i
给你一个由数字组成的字符串 s 。重复执行以下操作,直到字符串恰好包含 两个 数字:
leetcode.com 2025-10-23
🟢3461.check-if-digits-are-equal-in-string-after-operations-i
🏷️ Tags
#math #string #combinatorics #number_theory #simulation
🟢3461.check-if-digits-are-equal-in-string-after-operations-i
🏷️ Tags
#math #string #combinatorics #number_theory #simulation
Telegraph
check-if-digits-are-equal-in-string-after-operations-i
You are given a string s consisting of digits. Perform the following operation repeatedly until the string has exactly two digits:
❤1
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…