Solving For The Max Value In An Array
Ayo Alfonso
228

Whether the array contains negative numbers is irrelevant. Set the candidate maximum to arr[0] to start, with a test if the array is empty. I mostly self taught, but my implementation of the solution to this problem would be much less complicated than what’s presented here.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.