Repository navigation
fix(searches): add null safety and empty matrix handling to RowColumnWiseSorted2dArrayBinarySearch - #7725
Conversation
…WiseSorted2dArrayBinarySearch
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
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 @DenizAltunkapan, Could you please review this pull request when you have a moment? Summary of Changes
Test Results
Thank you for your time and consideration! |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7725 +/- ##
============================================
- Coverage 82.23% 82.22% -0.01%
- Complexity 8402 8409 +7
============================================
Files 843 843
Lines 26140 26145 +5
Branches 5100 5101 +1
============================================
+ Hits 21495 21498 +3
+ Misses 3853 3852 -1
- Partials 792 795 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
clang-format -i --style=file path/to/your/file.javaDescription
This pull request adds null safety, empty matrix handling, and marks
RowColumnWiseSorted2dArrayBinarySearchfinal:matrix == null, empty 2D array (matrix.length == 0), empty first row (matrix[0].length == 0), andtarget == null, returning{-1, -1}safely.colPointer < matrix[rowPointer].lengthbefore reading elements to preventNullPointerExceptionandArrayIndexOutOfBoundsException.public final class RowColumnWiseSorted2dArrayBinarySearch.find()interface method.