← Amazon questions

Order students by competition wins and losses

Filed under Amazon

Given a set of competition results, determine if there exists a linear ordering of students such that every student lost to their left neighbor and won against their right neighbor.

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.