Binary Search
Repeatedly divide the array or list into halves to reduce the search space and locate the target value.
How it works ?
Define start of array as index 0 initially.
Define end of array as index of array’s length -1 initially.
Run a loop until start ...
juhilee.hashnode.dev2 min read