← 返回 linkedin 的题目列表Convex Array Minimum
类型:online_judge
Given a convex array, find the minimum value in the array. The array is sorted in either ascending or descending order. Consider cases where the array is empty or contains only one element. Provide an algorithm with O(log n) complexity.
Example
Input
1 2 3 4 5