about | help | code help+videos | done | prefs |
Write a method that accepts an array of integers as a parameter, and which returns the largest value in that array. For example if the array {-3, -2, -6} was passed to the method, it would return -2. If an empty array is passed to the method, it should return -999. findMaxValue([-3, -2, -6]) → -2 findMaxValue([111, 222, 3333, 22]) → 3333 findMaxValue([]) → -999 ...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
Copyright Nick Parlante 2017 - privacy