Skip to content

Mistake in docstring of binary search? #8854

Closed Answered by tianyizheng02
Ross-Li asked this question in Q&A
Discussion options

You must be logged in to vote

sorted_collection[3:3] is the empty list [], not [10], so the doctest is actually correct.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Ross-Li
Comment options

You must be logged in to vote
2 replies
@tianyizheng02
Comment options

@CaedenPH
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants