about | help | code help+videos | done | prefs |
ranger
Return the difference between the maximum and minimum values in the array. If the minimum and the maximum are equal then return zero. Assume that the length of the array is at least one. ranger([5, 12, 1, 7]) → 11 ranger([82, 68]) → 14 ranger([5, 6, 6, 5, 6, 5]) → 1 ...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