Available question text
Count the number of ordered triples (i, j, k) such that nums[i] & nums[j] & nums[k] == 0. With nums.length up to 1000 and values < 2^16, the challenge is to avoid O(n^3) brute force by using bitmask frequency precomputation (e.g., pairwise AND counts or SOS convolution over 2^16 masks) to aggregate valid triples efficiently.
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 982. Triples with Bitwise AND Equal To Zero
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source