about | help | code help+videos | done | prefs |
Given an array of ints, return the average calculated without the extremes (max and min). This means if the min or max appears multiple times, they will never be used. centerAverage2([1, 1, 1, 3, 3, 4, 4]) → 3 centerAverage2([1, 4, 1, 4, 3, 3, 3]) → 3 centerAverage2([-4, 2, 3, 2, 3, 4, 4, 100]) → 3 ...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