id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

whereIsMax


Given an array of ints, return the index of the maximum value in the array. The array length will be 1 or more. There will be no duplicate values in the array.


whereIsMax([5, 9, 6]) → 1
whereIsMax([8, 5, 4, 3]) → 0
whereIsMax([7, 5, 0, 14]) → 3

...Save, Compile, Run (ctrl-enter)

public int whereIsMax( int [] nums ){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 200

Copyright Nick Parlante 2017 - privacy