Problem 911 · Medium

Online Election

Precompute the leader after each vote, then answer time queries with binary search.

Open the interactive visualisation