about | help | code help+videos | done | prefs |
int findLargestVal(int[] nums). Given an array with a length between 0 and 5, examine its elements and return the LARGEST value you find. If the array has no elements, return 0. int largest = Math.max(nums[0], nums[1]); largest = Math.max(nums[2], largest); findLargestVal([1, 3, 2]) → 3 findLargestVal([60, 50, 70, 90, 20]) → 90 findLargestVal([]) → 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: 110
Copyright Nick Parlante 2017 - privacy