Skip to content

Conversation

@Kimmicorn-glitch
Copy link

  • Returns index if found, NotFoundError object if not.
  • Handles edge cases: empty list, single element, first/last element.
  • Optimized for large datasets.

Implemented binary search algorithm in the binary method.
@lindelwa122
Copy link
Owner

@Kimmicorn-glitch, your implementation works, and I have marked it as hacktoberfest-accepted. But I am just curious, why did you remove the docstrings?

@Kimmicorn-glitch
Copy link
Author

Kimmicorn-glitch commented Oct 20, 2025 via email

@lindelwa122
Copy link
Owner

lindelwa122 commented Oct 20, 2025

@Kimmicorn-glitch, no it's okay, I just wanted to find out your reasoning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants