← VMware questions

Find the second largest element in an array

Filed under VMware · Also reported at Capgemini, Expedia, FICO, LTIMindtree, Swiggy, Tiger Analytics

Write an algorithm to find the second largest element in a given array of numbers without fully sorting the array.

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 VMware questions

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