A bitonic array is an array that first increases and then possibly decreases. Find the maximum value in such an array. The maximum element is the peak of the array.
{
"arr": [
1,
3,
8,
12,
4,
2
]
}12{
"arr": [
3,
5,
15,
50,
11,
10,
8
]
}50{
"arr": [
1,
15,
25,
45,
42,
21,
17,
12
]
}45Sign in to Run Code and Submit