Skip to content

Commit 4a6e43f

Browse files
authored
Update Binary-Search.md
1 parent adc909f commit 4a6e43f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Notes/Binary-Search.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,17 @@ Let's call the index of the middle number in this target section `mid`, which ca
5757

5858
There are three possible scenarios:
5959

60-
1) `array[mid] == targetValue`
60+
1: `array[mid] == targetValue`
6161

6262
If the middle number of our current sequence is equal to the target value, we have found what we are looking for and are done
6363

64-
2) `array[mid] < targetValue`
64+
2: `array[mid] < targetValue`
6565

6666
If the middle number of our sequence is less than the target value, then we know that the bottom half of the current sequence can be eliminated.
6767

6868
We can adjust the sequence by setting `lo = mid`
6969

70-
3) `array[mid] > targetValue`
70+
3: `array[mid] > targetValue`
7171

7272
If the middle number of our sequence is greater than the target value, then we know that the top half of the current sequence can be eliminated.
7373

0 commit comments

Comments
 (0)