โ† Amazon questions

Tournament winner and player rank

Filed under Amazon

Given match outcomes of N players where transitive property holds, find the tournament winner in O(N) time and O(1) space, and find player ranks or order in O(N log N) time.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.