Etsy Interview Question

Return the max int in an array.

Interview Answer

Anonymous

Aug 22, 2018

Consider test cases first - invalid values return null and negative values are valid. A single loop through the array is sufficient.