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.…