- ๐ญ Iโm currently working to become a Full Stack Developer
- ๐ฑ Iโm currently learning Frontend Development and Backend Engineering
- ๐ค Exploring AI and Data Science
- ๐ฏ Iโm looking to collaborate with other content creators and developers
- โก Techthusiast
haris-bit / binarysearch Goto Github PK
View Code? Open in Web Editor NEWLearned how to implement an iterative binary search solution. The method returns the index of the target value from a sorted list. If the target value is not found, the method returns -1. The benefits of binary search are significant compared to linear search on a sorted array, because it does not need to check every element to determine whether a target value is in an array. However, this logic only works on a sorted list!