Interview Question

Software Engineer Intern Interview Seattle, WA

Find the 2nd largest integer for given array


Interview Answer

1 Answer


Use Bubble Sort twice to get last 2 highest element from an array.
O(2N) = O(N)

Gokul on Feb 27, 2013

Add Answers or Comments

To comment on this, Sign In or Sign Up.