tarunsinghofficial / HacktoberFest

:octocat: Add your Programs or tech content to help other contributors ✅
379 stars 2.28k forks source link

Create Order Agnostic binary search in java #2600

Open Vignesh2131 opened 1 year ago

Vignesh2131 commented 1 year ago

Order Agnostic Binary search is used when the user has no idea whether the given array is sorted in ascending or descending order then by comparing the first and last element of the array, we can get to know whether the given array is in ascending or descending order.