@akash your solution won't work. Think few minutes and you will get a lot of cases where it wont work.
On Wed, Mar 2, 2011 at 10:26 AM, sunny agrawal <[email protected]>wrote: > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Thanks & Regards, Gaurav Gupta 7676-999-350 "Quality is never an accident. It is always result of intelligent effort" - John Ruskin -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
