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