Count subarrays with bitwise AND greater than t
Filed under CodeNation
The question
Given an array of integers and multiple queries with range, size, and threshold, count the number of subarrays of a given size within the range whose bitwise AND is greater than the threshold.
No write-up yet. Related questions below have one.
Related CodeNation questions
Collected from public candidate posts and coding forums. Updated Nov 2026.