From e1516b718eb27106edcd1ebabbe33b733384e341 Mon Sep 17 00:00:00 2001 From: Cannon-Cole <38596123+Cannon-Cole@users.noreply.github.com> Date: Mon, 28 Feb 2022 03:29:13 -0700 Subject: [PATCH] Added a missing assert for when the value is 70 (#45268) --- .../algorithms/implement-binary-search.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/curriculum/challenges/english/10-coding-interview-prep/algorithms/implement-binary-search.md b/curriculum/challenges/english/10-coding-interview-prep/algorithms/implement-binary-search.md index d2383c52ed..bd2e8306ee 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/algorithms/implement-binary-search.md +++ b/curriculum/challenges/english/10-coding-interview-prep/algorithms/implement-binary-search.md @@ -80,6 +80,11 @@ assert.deepEqual(binarySearch(_testArray, 11), [13, 5, 10, 11]) assert.deepEqual(binarySearch(_testArray, 13), [13]); ``` +`binarySearch(testArray, 70)` should return `[13, 19, 22, 49, 70]`. + +```js +assert.deepEqual(binarySearch(_testArray, 70), [13, 19, 22, 49, 70]); +``` # --seed--