| about | help | code help+videos | done | prefs |
findRange
Given an array of integers x, return the range of the values in the array. The range is defined as the difference between the largest and smallest values in the array. You may assume the array has at least one element. findRange([1, 2, 3]) → 2 findRange([10, 3, 5, 6]) → 7 findRange([7]) → 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
Copyright Nick Parlante 2017 - privacy