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

 

norm.krumpe@muohio.edu program12 > max
prev  |  next  |  chance

Given an array, return the largest value in the array. The array will have at least one element.


max([3, 7, 1]) → 7
max([8, 9, 1, 2, 9]) → 9
max([0, 0]) → 0

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

int max(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