Query Frequency Match with Second Max
Filed under Wissen
The question
Given an array of N numbers and Q queries of range [L, R], count the numbers whose frequency in the inclusive range equals the second max number in that range.
No write-up yet. Related questions below have one.
Related Wissen questions
Collected from public candidate posts and coding forums. Updated Nov 2026.