Search an integer in a two dimensional integer array, in which each row and column are in sorted ascending order
Input:
1 5 7 9
4 6 10 15
8 11 12 19
14 16 18 21
findNumber: 11
Output:
Number is at index 2,1
Input:
1 5 7 9
4 6 10 15
8 11 12 19
14 16 18 21
findNumber: 11
Output:
Number is at index 2,1
This comment has been removed by the author.
ReplyDelete