From 165d6ab844be1452a7cb0102ac447aec6ad216a6 Mon Sep 17 00:00:00 2001 From: Tom <20648924+moT01@users.noreply.github.com> Date: Sat, 7 Aug 2021 11:13:00 -0500 Subject: [PATCH] fix(curriculum): insertion sort challenge (#43135) --- .../algorithms/implement-insertion-sort.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/curriculum/challenges/english/10-coding-interview-prep/algorithms/implement-insertion-sort.md b/curriculum/challenges/english/10-coding-interview-prep/algorithms/implement-insertion-sort.md index bbac650914..74d77163d2 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/algorithms/implement-insertion-sort.md +++ b/curriculum/challenges/english/10-coding-interview-prep/algorithms/implement-insertion-sort.md @@ -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. ```js