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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7725 +/- ##
=========================================
Coverage 82.34% 82.35%
- Complexity 8447 8451 +4
=========================================
Files 843 843
Lines 26156 26158 +2
Branches 5110 5110
=========================================
+ Hits 21539 21542 +3
+ Misses 3830 3827 -3
- Partials 787 789 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Hi @DenizAltunkapan, I have updated the PR following your feedback:
Please let me know if everything looks good or if any further adjustments are needed. Thank you! |
DenizAltunkapan
left a comment
There was a problem hiding this comment.
Looks good! @hardikkaurani

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.