Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle the case when target is last in jumpSearch #231

Merged
merged 1 commit into from
Mar 2, 2024

Conversation

vil02
Copy link
Member

@vil02 vil02 commented Mar 1, 2024

jumpSearch([1, 3, 5, 8], 8) does not give the correct result. This PR fixes that and adds more test cases.

@vil02 vil02 marked this pull request as ready for review March 1, 2024 16:29
@raklaptudirm raklaptudirm merged commit b3a3bd7 into TheAlgorithms:master Mar 2, 2024
3 checks passed
@vil02 vil02 deleted the fix_jumpSearch branch March 2, 2024 20:26
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.

3 participants