Is this your company?
Function takes an array as a parameter and returns a number which isn't the maximum. No pseudo code expected, just the logic was asked.
Anonymous
too easy, can be done in O(1) complexity if the array elements are distinct. Just compare the first two elements and return the smaller one
Check out your Company Bowl for anonymous work chats.