Code RecipeDec 18, 20216 min readBinary Search: Searching Made EasyBinary search works only sorted arrays. Binary search divides the given array in the middle into two halves. Hence the name binary search.
Code RecipeDec 12, 20213 min readLinear Search: Searching Made EasyLinear search finds the target element by comparing it with all the given elements in the input array, one by one.