CodingReported in a candidate post, Aug 2022
Count elements greater than K in range [L, R]
Filed under Ivanti
The question
Given an array of length N and M queries each defined as [L, R, K], find the number of elements in the subarray from index L to R that are strictly greater than K.
No write-up yet. Related questions below have one.
Related Ivanti questions
Collected from public candidate posts and coding forums. Updated Nov 2026.