about | help | code help+videos | done | prefs |
median
Return the median in an array of three or more (odd number) integers. The median is defined as the middle element that there are as many elements below it as those above it. median([2, 1, 3, -2, 8]) → 2 median([-4, 6, 2]) → 2 median([4, 2, 48, 1, 50]) → 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: 300
Copyright Nick Parlante 2017 - privacy