title: Find Second largest number in array at most n+log₂(n)−2 comparisons
body: <p>You are given as input an unsorted array of n distinct numbers, where n is a power of 2. Give an algorithm that identifies the second-largest number in the array, and that uses at most n+log₂(n)−2 comparisons. </p>