Binary Search - AP Computer Science Principles

Card 1 of 30

0
Didn't Know
Knew It
0
1 of 3029 left
Question

Is binary search applicable to all data types?

Tap to reveal answer

Answer

Yes, if they are comparable and sorted. Elements must support comparison operators and ordering.

← Didn't Know|Knew It →