Sogeti interview question

Find the two smallest numbers in a given array of ints.

Interview Answer

Anonymous

29 Mar 2019

Loop. Find the smallest value first, then use the same if statement condition plus exclude the smallest value, to get the second smallest value.