Sogeti Interview Question

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

Interview Answer

Anonymous

Mar 29, 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.