Repository navigation
fix(searches): add null safety and Comparable consistency to JumpSearch - #7653
hardikkaurani wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Hi @alxkm, opened this PR to add null safety guards (returning -1 on null/empty inputs) and ensure Comparable contract consistency (\key.compareTo(array[i]) == 0) in \JumpSearch, matching the conventions in other search algorithms in this package. Whenever convenient, please take a look! Thanks! |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7653 +/- ##
============================================
- Coverage 82.19% 82.18% -0.02%
- Complexity 8379 8382 +3
============================================
Files 842 842
Lines 26101 26103 +2
Branches 5090 5090
============================================
- Hits 21454 21453 -1
- Misses 3857 3858 +1
- Partials 790 792 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Description
This pull request improves \JumpSearch:
ull\ array, empty array, and
ull\ key returning -1\ instead of throwing \NullPointerException.
CC: @alxkm for review