Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
CS foundations
/
CS foundations
Which condition must hold before binary search can safely discard half of the remaining r…
from CS foundations
beginner
1 min
Which condition must hold before binary search can safely discard half of the remaining range?
The data is ordered under the same comparator used by the search.
The collection contains no duplicate values.
The target is known to be present.
Check
Ask AI about this kata
Report an error
previous kata
Name the recursive case that returns directly instead of making another recursive call
Fill in
next kata
Name the state a graph traversal must maintain to avoid revisiting vertices indefinitely …
Fill in
A new version is available
Reload