Computer Science
Why does binary search need the array to be sorted first?
INIshaan NairMentorasked 2 h ago
I get that binary search is faster than checking every element, but why does it break completely if the list isn't sorted?
#algorithms#binary-search