You are given an array of N integers. Your job is to find maximum and second maximum element in N+logN comparisons.
Click for Solution
[Insert Code]