leetcode.com 2025-11-10
🟡3542.minimum-operations-to-convert-all-elements-to-zero
🏷️ Tags
#stack #greedy #array #hash_table #monotonic_stack
🟡3542.minimum-operations-to-convert-all-elements-to-zero
🏷️ Tags
#stack #greedy #array #hash_table #monotonic_stack
Telegraph
minimum-operations-to-convert-all-elements-to-zero
You are given an array nums of size n, consisting of non-negative integers. Your task is to apply some (possibly zero) operations on the array so that all elements become 0. In one operation, you can select a subarray [i, j] (where 0 <= i <= j < n) and set…
leetcode.cn 2025-11-19
🟢2154.keep-multiplying-found-values-by-two
🏷️ Tags
#array #hash_table #sorting #simulation
🟢2154.keep-multiplying-found-values-by-two
🏷️ Tags
#array #hash_table #sorting #simulation
Telegraph
keep-multiplying-found-values-by-two
给你一个整数数组 nums ,另给你一个整数 original ,这是需要在 nums 中搜索的第一个数字。 接下来,你需要按下述步骤操作:
leetcode.com 2025-11-19
🟢2154.keep-multiplying-found-values-by-two
🏷️ Tags
#array #hash_table #sorting #simulation
🟢2154.keep-multiplying-found-values-by-two
🏷️ Tags
#array #hash_table #sorting #simulation
Telegraph
keep-multiplying-found-values-by-two
You are given an array of integers nums. You are also given an integer original which is the first number that needs to be searched for in nums. You then do the following steps:
leetcode.cn 2025-11-21
🟡1930.unique-length-3-palindromic-subsequences
🏷️ Tags
#bit_manipulation #hash_table #string #prefix_sum
🟡1930.unique-length-3-palindromic-subsequences
🏷️ Tags
#bit_manipulation #hash_table #string #prefix_sum
Telegraph
unique-length-3-palindromic-subsequences
给你一个字符串 s ,返回 s 中 长度为 3 的不同回文子序列 的个数。 即便存在多种方法来构建相同的子序列,但相同的子序列只计数一次。 回文 是正着读和反着读一样的字符串。 子序列 是由原字符串删除其中部分字符(也可以不删除)且不改变剩余字符之间相对顺序形成的一个新字符串。
leetcode.com 2025-11-21
🟡1930.unique-length-3-palindromic-subsequences
🏷️ Tags
#bit_manipulation #hash_table #string #prefix_sum
🟡1930.unique-length-3-palindromic-subsequences
🏷️ Tags
#bit_manipulation #hash_table #string #prefix_sum
Telegraph
unique-length-3-palindromic-subsequences
Given a string s, return the number of unique palindromes of length three that are a subsequence of s. Note that even if there are multiple ways to obtain the same subsequence, it is still only counted once. A palindrome is a string that reads the same forwards…
leetcode.cn 2025-11-27
🟡3381.maximum-subarray-sum-with-length-divisible-by-k
🏷️ Tags
#array #hash_table #prefix_sum
🟡3381.maximum-subarray-sum-with-length-divisible-by-k
🏷️ Tags
#array #hash_table #prefix_sum
Telegraph
maximum-subarray-sum-with-length-divisible-by-k
给你一个整数数组 nums 和一个整数 k 。
leetcode.com 2025-11-27
🟡3381.maximum-subarray-sum-with-length-divisible-by-k
🏷️ Tags
#array #hash_table #prefix_sum
🟡3381.maximum-subarray-sum-with-length-divisible-by-k
🏷️ Tags
#array #hash_table #prefix_sum
Telegraph
maximum-subarray-sum-with-length-divisible-by-k
You are given an array of integers nums and an integer k. Return the maximum sum of a subarray of nums, such that the size of the subarray is divisible by k. Example 1: Input: nums = [1,2], k = 1 Output: 3 Explanation: The subarray [1, 2] with sum 3 has…