leetcode.cn 2026-04-08
🟡3653.xor-after-range-multiplication-queries-i
🏷️ Tags
#array #divide_and_conquer #simulation
🟡3653.xor-after-range-multiplication-queries-i
🏷️ Tags
#array #divide_and_conquer #simulation
Telegraph
xor-after-range-multiplication-queries-i
给你一个长度为 n 的整数数组 nums 和一个大小为 q 的二维整数数组 queries,其中 queries[i] = [li, ri, ki, vi]。 对于每个查询,按以下步骤执行操作:
leetcode.com 2026-04-08
🟡3653.xor-after-range-multiplication-queries-i
🏷️ Tags
#array #divide_and_conquer #simulation
🟡3653.xor-after-range-multiplication-queries-i
🏷️ Tags
#array #divide_and_conquer #simulation
Telegraph
xor-after-range-multiplication-queries-i
You are given an integer array nums of length n and a 2D integer array queries of size q, where queries[i] = [li, ri, ki, vi]. For each query, you must apply the following operations in order:
leetcode.cn 2026-04-09
🔴3655.xor-after-range-multiplication-queries-ii
🏷️ Tags
#array #divide_and_conquer
🔴3655.xor-after-range-multiplication-queries-ii
🏷️ Tags
#array #divide_and_conquer
Telegraph
xor-after-range-multiplication-queries-ii
给你一个长度为 n 的整数数组 nums 和一个大小为 q 的二维整数数组 queries,其中 queries[i] = [li, ri, ki, vi]。
leetcode.com 2026-04-09
🔴3655.xor-after-range-multiplication-queries-ii
🏷️ Tags
#array #divide_and_conquer
🔴3655.xor-after-range-multiplication-queries-ii
🏷️ Tags
#array #divide_and_conquer
Telegraph
xor-after-range-multiplication-queries-ii
You are given an integer array nums of length n and a 2D integer array queries of size q, where queries[i] = [li, ri, ki, vi].
leetcode.cn 2026-06-25
🟡3737.count-subarrays-with-majority-element-i
🏷️ Tags
#segment_tree #array #hash_table #divide_and_conquer #counting #prefix_sum #merge_sort
🟡3737.count-subarrays-with-majority-element-i
🏷️ Tags
#segment_tree #array #hash_table #divide_and_conquer #counting #prefix_sum #merge_sort
Telegraph
count-subarrays-with-majority-element-i
给你一个整数数组 nums 和一个整数 target。
leetcode.com 2026-06-25
🟡3737.count-subarrays-with-majority-element-i
🏷️ Tags
#segment_tree #array #hash_table #divide_and_conquer #counting #prefix_sum #merge_sort
🟡3737.count-subarrays-with-majority-element-i
🏷️ Tags
#segment_tree #array #hash_table #divide_and_conquer #counting #prefix_sum #merge_sort
Telegraph
count-subarrays-with-majority-element-i
You are given an integer array nums and an integer target. Return the number of subarrays of nums in which target is the majority element. The majority element of a subarray is the element that appears strictly more than half of the times in that subarray.…
leetcode.cn 2026-06-26
🔴3739.count-subarrays-with-majority-element-ii
🏷️ Tags
#segment_tree #array #hash_table #divide_and_conquer #prefix_sum #merge_sort
🔴3739.count-subarrays-with-majority-element-ii
🏷️ Tags
#segment_tree #array #hash_table #divide_and_conquer #prefix_sum #merge_sort
Telegraph
count-subarrays-with-majority-element-ii
给你一个整数数组 nums 和一个整数 target。
leetcode.com 2026-06-26
🔴3739.count-subarrays-with-majority-element-ii
🏷️ Tags
#segment_tree #array #hash_table #divide_and_conquer #prefix_sum #merge_sort
🔴3739.count-subarrays-with-majority-element-ii
🏷️ Tags
#segment_tree #array #hash_table #divide_and_conquer #prefix_sum #merge_sort
Telegraph
count-subarrays-with-majority-element-ii
You are given an integer array nums and an integer target. Return the number of subarrays of nums in which target is the majority element. The majority element of a subarray is the element that appears strictly more than half of the times in that subarray.…
leetcode.cn 2026-10-18
🔴1569.number-of-ways-to-reorder-array-to-get-same-bst
🏷️ Tags
#tree #union_find #binary_search_tree #memoization #array #math #divide_and_conquer #dynamic_programming #binary_tree #combinatorics #fermats_little_theorem
🔴1569.number-of-ways-to-reorder-array-to-get-same-bst
🏷️ Tags
#tree #union_find #binary_search_tree #memoization #array #math #divide_and_conquer #dynamic_programming #binary_tree #combinatorics #fermats_little_theorem
Telegraph
number-of-ways-to-reorder-array-to-get-same-bst
给你一个数组 nums 表示 1 到 n 的一个排列。我们按照元素在 nums 中的顺序依次插入一个初始为空的二叉搜索树(BST)。请你统计将 nums 重新排序后,统计满足如下条件的方案数:重排后得到的二叉搜索树与 nums 原本数字顺序得到的二叉搜索树相同。
leetcode.com 2026-10-18
🔴1569.number-of-ways-to-reorder-array-to-get-same-bst
🏷️ Tags
#tree #union_find #binary_search_tree #memoization #array #math #divide_and_conquer #dynamic_programming #binary_tree #combinatorics #fermats_little_theorem
🔴1569.number-of-ways-to-reorder-array-to-get-same-bst
🏷️ Tags
#tree #union_find #binary_search_tree #memoization #array #math #divide_and_conquer #dynamic_programming #binary_tree #combinatorics #fermats_little_theorem
Telegraph
number-of-ways-to-reorder-array-to-get-same-bst
Given an array nums that represents a permutation of integers from 1 to n. We are going to construct a binary search tree (BST) by inserting the elements of nums in order into an initially empty BST. Find the number of different ways to reorder nums so that…