top of page

Binary Search: Searching Made Easy
Binary search works only sorted arrays. Binary search divides the given array in the middle into two halves. Hence the name binary search.
Code Recipe
Dec 18, 20216 min read
21,270 views
0 comments

Linear Search: Searching Made Easy
Linear search finds the target element by comparing it with all the given elements in the input array, one by one.
Code Recipe
Dec 12, 20213 min read
354 views
0 comments
bottom of page