Given an array of integers which is initially increasing and then decreasing, find the maximum value in the array. Input: arr[] = {8, 10, 20, 80, 100, 200, 400, 500, 3, 2, 1} Output: 500 Input: arr[] = {1, 3, 50, 10, 9, 7, 6} Output: 50
Check out your Company Bowl for anonymous work chats.