about | help | code help+videos | done | prefs |
Write a method that accepts an array of integers and returns an array in the form {lowest, highest} where lowest is the lowest valued element in the input array and highest is the highest valued element in the input array. Note that the input array may be empty, in which case just return {0,0}. testSLAPHL_Q11([4, -3, 7, 3, 1, -2]) → [-3, 7] testSLAPHL_Q11([]) → [0, 0] testSLAPHL_Q11([5]) → [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: 299
Copyright Nick Parlante 2017 - privacy