Problems
Contests
Account
Problems
> Count Multiples of 7 > Editorial
Count Multiples of 7 — Solution & Editorial
Back to the Problem
Prefix counts of the predicate answer each query in O(1).
Complexity:
O(N + Q)
×
Refer Job