fix(guide): Fixed broken formatting and links (#28958)

This commit is contained in:
Joe Roland
2019-01-21 12:43:20 -05:00
committed by Tom
parent a56ff7c3bf
commit 3cd7f55fcc

View File

@ -15,7 +15,7 @@ Binary search works on sorted arrays. A binary search begins by comparing the mi
The pseudocode for binary search algorithm is as follows:
BinarySearch(A<a href='https://repl.it/CWZq/158' target='_blank' rel='nofollow'>0..N-1], value) {
BinarySearch(A[0..N-1], value) {
low = 0
high = N - 1
while (low <= high) {
@ -55,7 +55,9 @@ The pseudocode for binary search algorithm is as follows:
return -1;
}
:rocket: [Run Code</a> ## Python Implementation
![:rocket:](https://forum.freecodecamp.com/images/emoji/emoji_one/rocket.png?v=3 ":rocket:") <a href='https://repl.it/CWZq/158' target='_blank' rel='nofollow'>Run Code</a>
## Python Implementation
def binary_search(l, value):
low = 0
@ -67,4 +69,4 @@ The pseudocode for binary search algorithm is as follows:
else: return mid
return -1
![:rocket:](https://forum.freecodecamp.com/images/emoji/emoji_one/rocket.png?v=3 ":rocket:") <a href='https://repl.it/CWZi/2' target='_blank' rel='nofollow'>Run Code</a>
![:rocket:](https://forum.freecodecamp.com/images/emoji/emoji_one/rocket.png?v=3 ":rocket:") <a href='https://repl.it/CWZi/2' target='_blank' rel='nofollow'>Run Code</a>