beastblaster
2007-10-14 18:35:11 UTC
Each row is increasing left to right
Each column is inceasing top to bottom
I drew an example 5 x 5 matrix to try and help
0 1 2 3 4
1 2 3 4 5
2 3 4 5 6
3 4 5 6 7
4 5 6 7 8
But I'm still having a hard time seeing how I can look through the matrix[ ][ ] and keep my algoritm O(N).
This is all in Java. Pseudocode would help too!
Thank you!