about | help | code help+videos | done | prefs |
A field is considered level if all of its elevation readings are within 8 inches of each other. Given a list of elevation readings of the field in inches, return true or false to indicate whether the field is level. If there are less than 3 readings, there is not enough data and you should return false in that case. levelField([11, 10, 14, 8]) → true levelField([11, 10, 14, 8, 10, 17]) → false levelField([4, 6]) → false ...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: 10 Post-solution available
Copyright Nick Parlante 2017 - privacy