Sorry about the tree, didn't keep in mind about BST while drawing that. But I think you all got the point that I was trying to point out.
On 13 August 2011 23:18, rajul jain <rajuljain...@gmail.com> wrote: > see WgpShashank second point carefully > it say successor is parent of left node > so solution of you BST is parent of 2 which is 4 > > On Sat, Aug 13, 2011 at 7:50 PM, Anika Jain <anika.jai...@gmail.com>wrote: > >> @ashmantak: the figure of dipankar is incorrect but his point is correct.. >> for a tree like >> >> 4 >> / \ >> 2 10 >> / \ >> 1 3 >> successor of 3 shall be 4 not 2.. >> >> >> On Fri, Aug 12, 2011 at 4:48 PM, ashmantak <ashman...@gmail.com> wrote: >> >>> @Dipankar Patro - >>> >>> The figure u have made isn't a BST.Read the problem. >>> His soln. is correct. >>> >>> -- >>> 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. >>> >> >> -- >> 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. >> > > -- > 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. > -- ___________________________________________________________________________________________________________ Please do not print this e-mail until urgent requirement. Go Green!! Save Papers <=> Save Trees -- 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.