about | help | code help+videos | done | prefs |
Returns the second largest element in the array. The array will have at least two unique elements. find2ndLargest([2, 1, 2, 3, 4]) → 3 find2ndLargest([2, 2, 0]) → 0 find2ndLargest([1, 3, 5]) → 3 ...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: 299
Copyright Nick Parlante 2017 - privacy