Binary Search for list but not for set

Viewed 2964

in Collection it is:

binarySearch(List list, Object key)

Why is binary search not applicable for Set? Why is it only for List?

Any specific reason?

4 Answers
Related