Skip to content

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

Merged
raklaptudirm merged 1 commit into
TheAlgorithms:masterfrom
vil02:fix_jumpSearch
Mar 2, 2024
Merged

fix: handle the case when target is last in jumpSearch#231
raklaptudirm merged 1 commit into
TheAlgorithms:masterfrom
vil02:fix_jumpSearch

Conversation

@vil02

@vil02 vil02 commented Mar 1, 2024

Copy link
Copy Markdown
Member

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
@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