← Amazon questions

Find the greatest person among N people given partial comparisons

Filed under Amazon

Given N people and a list of directed comparisons (A > B), identify the 'greatest' person. A person is the greatest if they are not 'less than' anyone else. If no such person exists or there is a…

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.