Find number in matrix

Question posted in Computer Software on 08 2009
Rate question difficulty level 0 Votes
In a matrix with size n X n.
The rows contain sorted numbers from left (smallest) to right (biggest)
The columns contain sorted numbers from top (smallest) to bottom (biggest)

You need to find a number in the matrix in O(n)
 
 
 
Add an answer*
 
Email
Location: Israel
developer c# java
Now hiring!
Intuit 
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------