Available question text
Count ordered pairs (a, b) from values in nums whose bit-counts satisfy popcount(a)+popcount(b) >= k. Key insight: popcount(a|b)+popcount(a&b)=popcount(a)+popcount(b), so deduplicate values, tally frequencies of popcounts (0–30), and count pairs of counts whose sum ≥ k.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2354. Number of Excellent Pairs
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source