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

 

spragunr@jmu.edu > getMax
prev  |  next  |  chance

Return the maximum value from the provided integer array. You may assume that all values in the array will be non-negative.


getMax([1]) → 1
getMax([0, 3, 2, 12, 4]) → 12
getMax([15, 3, 1, 7, 2]) → 15

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

public int getMax(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

Copyright Nick Parlante 2017 - privacy