leetcode.cn 2026-07-22
🔴3501.maximize-active-section-with-trade-ii
🏷️ Tags
#segment_tree #array #string #binary_search
🔴3501.maximize-active-section-with-trade-ii
🏷️ Tags
#segment_tree #array #string #binary_search
Telegraph
maximize-active-section-with-trade-ii
给你一个长度为 n 的二进制字符串 s ,其中:
leetcode.com 2026-07-22
🔴3501.maximize-active-section-with-trade-ii
🏷️ Tags
#segment_tree #array #string #binary_search
🔴3501.maximize-active-section-with-trade-ii
🏷️ Tags
#segment_tree #array #string #binary_search
Telegraph
maximize-active-section-with-trade-ii
You are given a binary string s of length n, where:
leetcode.cn 2026-07-24
🟡3514.number-of-unique-xor-triplets-ii
🏷️ Tags
#bit_manipulation #array #math #enumeration
🟡3514.number-of-unique-xor-triplets-ii
🏷️ Tags
#bit_manipulation #array #math #enumeration
Telegraph
number-of-unique-xor-triplets-ii
给你一个整数数组 nums 。
leetcode.com 2026-07-24
🟡3514.number-of-unique-xor-triplets-ii
🏷️ Tags
#bit_manipulation #array #math #enumeration
🟡3514.number-of-unique-xor-triplets-ii
🏷️ Tags
#bit_manipulation #array #math #enumeration
Telegraph
number-of-unique-xor-triplets-ii
You are given an integer array nums. A XOR triplet is defined as the XOR of three elements nums[i] XOR nums[j] XOR nums[k] where i <= j <= k. Return the number of unique XOR triplet values from all possible triplets (i, j, k). Example 1: Input: nums = [1…
leetcode.cn 2026-07-27
🟢1464.maximum-product-of-two-elements-in-an-array
🏷️ Tags
#array #sorting #heap_priority_queue
🟢1464.maximum-product-of-two-elements-in-an-array
🏷️ Tags
#array #sorting #heap_priority_queue
Telegraph
maximum-product-of-two-elements-in-an-array
给你一个整数数组 nums,请你选择数组的两个不同下标 i 和 j,使 (nums[i]-1)*(nums[j]-1) 取得最大值。 请你计算并返回该式的最大值。 示例 1: 输入:nums = [3,4,5,2] 输出:12 解释:如果选择下标 i=1 和 j=2(下标从 0 开始),则可以获得最大值,(nums[1]-1)*(nums[2]-1) = (4-1)*(5-1) = 3*4 = 12 。 示例 2: 输入:nums = [1,5,4,5] 输出:16 解释:选择下标 i=1 和 j=3(下标从…
leetcode.com 2026-07-27
🟢1464.maximum-product-of-two-elements-in-an-array
🏷️ Tags
#array #sorting #heap_priority_queue
🟢1464.maximum-product-of-two-elements-in-an-array
🏷️ Tags
#array #sorting #heap_priority_queue
Telegraph
maximum-product-of-two-elements-in-an-array
Example 1: Input: nums = [3,4,5,2] Output: 12 Explanation: If you choose the indices i=1 and j=2 (indexed from 0), you will get the maximum value, that is, (nums[1]-1)*(nums[2]-1) = (4-1)*(5-1) = 3*4 = 12. Example 2: Input: nums = [1,5,4,5] Output: 16 Explanation:…
leetcode.cn 2026-07-28
🟡3517.smallest-palindromic-rearrangement-i
🏷️ Tags
#string #counting_sort #sorting
🟡3517.smallest-palindromic-rearrangement-i
🏷️ Tags
#string #counting_sort #sorting
Telegraph
smallest-palindromic-rearrangement-i
给你一个 回文 字符串 s。 返回 s 的按字典序排列的 最小 回文排列。 如果一个字符串从前往后和从后往前读都相同,那么这个字符串是一个 回文 字符串。 排列 是字符串中所有字符的重排。