Slalom interview question

How can you find the highest value in an array?

Interview Answer

Anonymous

16 Oct 2016

Create a variable to store the value and iterate over the array in a for-loop. If the value in the array is greater than the variable, write the value to the variable.