Skip to content

Conversation

Jay31kr
Copy link

@Jay31kr Jay31kr commented May 6, 2024

updated the binary search - changed the way of calculating mid so that it will not go out of range

Jay31kr added 3 commits May 6, 2024 16:48
rather than using mid = (start + mid)/2 using start + (end-start)/2 as in some cases (start + end) can be out of the range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant