fix(curriculum): insertion sort challenge (#43135)

This commit is contained in:
Tom
2021-08-07 11:13:00 -05:00
committed by GitHub
parent 1f4972c6f5
commit 165d6ab844

View File

@ -75,6 +75,12 @@ assert.sameMembers(
); );
``` ```
`insertionSort([5, 4, 33, 2, 8])` should return `[2, 4, 5, 8, 33]`.
```js
assert.deepEqual(insertionSort([5, 4, 33, 2, 8]), [2, 4, 5, 8, 33])
```
`insertionSort` should not use the built-in `.sort()` method. `insertionSort` should not use the built-in `.sort()` method.
```js ```js