Find the maximum integer in an unsorted array of integers.
Anonymous
Solution 1: sort the array and retrieve the last element in the array. Solution 2: Assign the first element to be the maximum, linear scan the array and assign a new maximum as long as it greater than the current maximum.
Check out your Company Bowl for anonymous work chats.