Domanda di colloquio di Amazon

Find the 2nd largest integer for given array

Risposta di colloquio

Anonimo

28 feb 2013

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