| about | help | code help+videos | done | prefs |
Given an array of integer variables, find the index of the maximum value. If two elements are both the maximum return the lower index. findMax([1, 2, 5, 3, 4]) → 2 findMax([9, 2, 5, 3, 4]) → 0 findMax([1]) → 0 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100 Post-solution available
Copyright Nick Parlante 2017 - privacy