Why not look at the source code for the non-recursive but canonical implementation in the Python bisect module? You'd have to turn the while-loop into a recursion of course.
sjakobi
- 3.6k
- 1
- 28
- 44
Why not look at the source code for the non-recursive but canonical implementation in the Python bisect module? You'd have to turn the while-loop into a recursion of course.