Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
What must be true about a list before you use binary search? | StemPy Lab
Quizzes
/
What must be true about a list before you use binary search?
Python Programming
Easy
High School (9–10)
High School (11–12)
Undergraduate
General
Python Essentials › Searching and Sorting
Created by
StemPy Lab
What must be true about a list before you use binary search?
It must be in order
It must have numbers only
It must have no repeats
It must be short
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← A linear search looks for 8 in [5, 3, 8]. How many items does it check?
What does print(sorted([3, 1, 2], reverse=True)) show? →
More on
Python Essentials › Searching and Sorting
Discussion (0)
Log in
to join the discussion.
Loading…
Problems on this topic
The marks, already sorted from the highest, are [95, 90, 90, 90, 80, 75, 75].
Medium
Bubble sort needs n * (n - 1) // 2 comparisons.
Medium
Write a function first_above(items, limit) that gives the position of the first item that is more…
Easy
Which search would you use? (a) A list of 5 names in no particular order.
Medium
All problems on this topic →