← 返回 meta 的题目列表Find Random Index of Maximum Element
类型:online_judge
Given an integer array, find the index of the maximum element. If there are multiple maximum values, randomly return any one of them. Assume the array contains at least one element.
Example
Input
[3, 1, 4, 4, 4, 2]