leetcode.com 2026-02-11
🔴3721.longest-balanced-subarray-ii
🏷️ Tags
#segment_tree #array #hash_table #divide_and_conquer #prefix_sum
🔴3721.longest-balanced-subarray-ii
🏷️ Tags
#segment_tree #array #hash_table #divide_and_conquer #prefix_sum
Telegraph
longest-balanced-subarray-ii
You are given an integer array nums. A subarray is called balanced if the number of distinct even numbers in the subarray is equal to the number of distinct odd numbers. Return the length of the longest balanced subarray. Example 1: Input: nums = [2,5,4…
leetcode.cn 2026-02-12
🟡3713.longest-balanced-substring-i
🏷️ Tags
#hash_table #string #counting #enumeration
🟡3713.longest-balanced-substring-i
🏷️ Tags
#hash_table #string #counting #enumeration
Telegraph
longest-balanced-substring-i
给你一个由小写英文字母组成的字符串 s。
leetcode.com 2026-02-12
🟡3713.longest-balanced-substring-i
🏷️ Tags
#hash_table #string #counting #enumeration
🟡3713.longest-balanced-substring-i
🏷️ Tags
#hash_table #string #counting #enumeration
Telegraph
longest-balanced-substring-i
You are given a string s consisting of lowercase English letters. A substring of s is called balanced if all distinct characters in the substring appear the same number of times. Return the length of the longest balanced substring of s. Example 1: Input:…
leetcode.cn 2026-02-21
🟢762.prime-number-of-set-bits-in-binary-representation
🏷️ Tags
#bit_manipulation #math
🟢762.prime-number-of-set-bits-in-binary-representation
🏷️ Tags
#bit_manipulation #math
Telegraph
prime-number-of-set-bits-in-binary-representation
给你两个整数 left 和 right ,在闭区间 [left, right] 范围内,统计并返回 计算置位位数为质数 的整数个数。 计算置位位数 就是二进制表示中 1 的个数。
leetcode.com 2026-02-21
🟢762.prime-number-of-set-bits-in-binary-representation
🏷️ Tags
#bit_manipulation #math
🟢762.prime-number-of-set-bits-in-binary-representation
🏷️ Tags
#bit_manipulation #math
Telegraph
prime-number-of-set-bits-in-binary-representation
Given two integers left and right, return the count of numbers in the inclusive range [left, right] having a prime number of set bits in their binary representation. Recall that the number of set bits an integer has is the number of 1's present when written…