Skip to content

Commit a5ec6d8

Browse files
authored
add introduction header
1 parent 821db84 commit a5ec6d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

strings_arrays/binary_search.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
### Introduction
2+
13
Binary search is a technique for efficiently locating an element in a sorted list. Searching for an element can done naively in **O(n)** time by checking every element in the list, but binary search's optimization speeds it up to **O(log n)**. Binary search is a great tool to keep in mind for array problems.
24

35
Algorithm

0 commit comments

Comments
 (0)