Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### median
|
||||
---
|
||||
title: median
|
||||
tags: math,array,intermediate
|
||||
---
|
||||
|
||||
Returns the median of an array of numbers.
|
||||
|
||||
@ -15,4 +18,4 @@ const median = arr => {
|
||||
|
||||
```js
|
||||
median([5, 6, 50, 1, -5]); // 5
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user