Find Index of Maximum Number in List with Duplicates

Asked at Meta · Coding & Leetcode-style Questions · Difficulty: Easy

Given an unsorted list of integers containing duplicates, implement a function to return the index of the maximum number. If the maximum number appears multiple times, return any one of the indices.

Loading the problem…