@atul.. Yup.. exactly.. i think the problem is itself about narrowing the range and works really well as each node can have only one child.. :)
On 31 Dec, 13:09, atul anand <atul.87fri...@gmail.com> wrote: > ok so by doing right=mid; and left=mid; in the if and else if block. > > you are narrowing down the range...?? > > thanks for the explanation :) -- 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.