Library
Exercises
Games
Exams
Resources
Forum
News
Light
Log in
Sign up
Library
Exercises
Games
Exams
Resources
Forum
News
All courses
Library
Binary search
An unsorted array
MCQ
What happens if a standard binary search is applied to an array that is not sorted?
Possible answers
The algorithm automatically detects the disorder and sorts the array before searching
The result may be incorrect: a value that is present may not be found
The algorithm works normally, just a bit more slowly
Python automatically raises an error
Log in to reply
Previous
Exercise 3 of 4
Next exercise
Report a mistake or suggest an improvement