Was tricked into the linear time solution for the first (median) assuming brute force will be too slow for the second. Well then this time it wasn’t.
Aren’t you guys posting your solutions a bit early?
I mean, yes the leaderboard is very wonky anyway and mainly tells what timezone people live in and if they are early risers, since all tasks don’t take much time.
But shouldn’t everyone try their own solution first so why post so early?