KarmaAndCoding
Saturday, April 9, 2011
Find an element in a matrix, whose rows are sorted left to right and cols are sorted top to bottom
Input:
3
3
1 2 3
4 5 6
7 8 9
7
Output:
1 2 3
4 5 6
7 8 9
KEY:7
Key Search? true
Code:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment