loading...

Discussion on: A bug was found in Java after almost 9 years of hiding.

Collapse
sebvercammen profile image
Sébastien Vercammen

The "sorted array search" example is the behavior of O(n) search in an unsorted array.

You're already applying binary search to a sorted array by using the indices.