Find 2 largest numbers in an array
Filed under Yatra.com
The question
Write code to find the two largest numbers in an array while properly handling all edge cases.
No write-up yet. Related questions below have one.
Related Yatra.com questions
Collected from public candidate posts and coding forums. Updated Nov 2026.