Net Bet interview question

find the second biggest number in the array

Interview Answer

Anonymous

9 May 2022

with 2 variables, max and ,maxNext , we go over the array in O(n)