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
/
Recursion
Which argument proves that recursive binary search on [low, high) terminates?
from Recursion
Python 3.14
intermediate
1 min
Which argument proves that recursive binary search on [low, high) terminates?
The interval width is nonnegative and strictly decreases on every recursive branch.
The target usually occurs near the middle of real data.
Every call has fewer local variables than its caller.
The runtime eventually removes old call frames.
Check
Ask AI about this kata
Report an error
previous kata
Spot the bug in the graph search
Spot the bug
A new version is available
Reload