What is the main purpose of using a binary search algorithm?
To search for an element in an unsorted array
To sort an array in ascending order
Overlook minor misbehaviors
Impose harsh punishments for any infraction

Data Structures and Algorithms Exercises are loading ...