Practice free →
HomeAP Computer Science AComputer ScienceData Structures and Algorithms › To run a binary search over place names, the dat…

To run a binary search over place names, the data must first be stored in a list that is:

ADoubled
BSorted
CReversed
DShuffled
Answer & Solution
Correct answer: B. Sorted
1. Halving only works with order. 2. The array list must be prepared. 3. It must be sorted. _Source: OpenStax Introduction to Computer Science, Chapter 3, Data Structures and Algorithms._
Solve this in the app — AP Computer Science A practice & 24k+ MCQs →
Related questions