John Deere Interview Question: Asked about how to find the s... | Glassdoor

Interview Question

Software Engineer Interview(Student Candidate) Pune (India)

Asked about how to find the second largest number in an

  array.
Answer

Interview Answer

1 Answer

1

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

Interview Candidate on Jul 24, 2017

Add Answers or Comments

To comment on this, Sign In or Sign Up.