Binary search is a simple algorithm that lets you search an array for a specific value. Itβs trivial to implement in Swift, which makes it exceptionally helpful for beginners as an introduction into algorithms.
Binary search works by constantly dividing the array of numbers in half, until weβve found the number weβre looking for. Because the array is sorted, we can use logic to figure out in which half of the array the number is.
This project is licensed under the MIT License - see the LICENSE
file for details.
This project needs a βοΈ from you. Don't forget to leave a star βοΈ
Sergey Lukaschuk βοΈ s.lukaschuk@yahoo.com