about | help | code help+videos | done | prefs |
SmallandBig - Write the method that receives an array of integers and returns an array of integers just containing the smallest and biggest number of the given array. If the array is empty return the [0,0]. Example [2,4,6,8,0] [0,8] smallAndBig([1, 2, 3, 4, 5, 6, 7, 8]) → [1, 8] smallAndBig([4, 1, 4, 2, 4, 3, 4, 5]) → [1, 5] smallAndBig([3, 4, 3]) → [3, 4] ...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