Problem 911 · Medium
Precompute the leader after each vote, then answer time queries with binary search.
Open the interactive visualisation