Marathon candidate ranking
Filed under Amazon
The question
Given an array where a[i] comes before i+1 and -1 indicates a winner, output the ranking of candidates.
No write-up yet. Related questions below have one.
Related Amazon questions
Collected from public candidate posts and coding forums. Updated Nov 2026.