Amazon.com

  www.amazon.com
  www.amazon.com

Interview Question

Software Engineer Intern Interview Seattle, WA

Find the 2nd largest integer for given array

Answer

Interview Answer

1 Answer

0

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.