John Deere Interview Question

Asked about how to find the second largest number in an array.

Interview Answer

Anonymous

Jul 24, 2017

The answer is quite easy : You sort it in descending order and then remove any duplicates and display the 2nd element of the array

2