about | help | code help+videos | done | prefs |
Write a method that returns the greatest value from an array of integers. The array will contain at least one element. findMax([4, -5, 6, 20, -40, 10, 3, 0]) → 20 findMax([8, 8, 8, 8]) → 8 findMax([-7, -3, 0, -2]) → 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: 450
Copyright Nick Parlante 2017 - privacy