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…