Binary Search Algorithm
Procedure
Array should be a sorted array.
Find the middle element
if the target is greater than the middle element -> search in the right
else -> search in the left (In an Ascending sorted array)
if middle element is equal to target element -> answe...
dszvivian.hashnode.dev2 min read