Tripadvisor interview question

Find the second max number in an unsorted array

Interview Answer

Anonymous

1 May 2017

This can be solved with a max heap (priority queues in java).