step 1: start at Bottom-left corner

step 2: if equal then return else if element is less than number to be
searched for then it cannot be in that row ....go up
step 3: if element is greater than number to be searched for then it cannot
be in that column ....go ahead
Repeat untill you got the Number.

O(N)
-- 
Sunny Aggrawal
B-Tech IV year,CSI
Indian Institute Of Technology,Roorkee

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to