Add tests in SearchInARowAndColWiseSortedMatrix (#5675)

This commit is contained in:
Hardik Pawar
2024-10-11 01:32:13 +05:30
committed by GitHub
parent a663e66782
commit fb11d455dd
3 changed files with 67 additions and 1 deletions

View File

@ -8,7 +8,6 @@ public class SearchInARowAndColWiseSortedMatrix {
* @param value Key being searched for
* @author Sadiul Hakim : https://github.com/sadiul-hakim
*/
public int[] search(int[][] matrix, int value) {
int n = matrix.length;
// This variable iterates over rows