about | help | code help+videos | done | prefs |
secondMax
Given an array of integers, with no duplicates, return the second-largest value in the array. The array will always contain at least two numbers. secondMax([4, 7, 1]) → 4 secondMax([6, 4, 7, 1]) → 6 secondMax([7, 5]) → 5 ...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: 200
Copyright Nick Parlante 2017 - privacy