oh ya thanks now i got it On Sun, Oct 24, 2010 at 9:54 AM, preetika tyagi <preetikaty...@gmail.com>wrote:
> @Praveen- In this case, we will not ignore the right subtree of the root > (-10, which is less than zero) while traversing the tree. > > > On Sat, Oct 23, 2010 at 9:06 PM, Praveen Baskar > <praveen200...@gmail.com>wrote: > >> i think it is possible nishaanth >> please do take a look at this example >> >> -10 >> / \ >> -11 8 >> /\ >> -5 10 >> -5 is greater than -10 >> >> >> On Sat, Oct 23, 2010 at 11:19 PM, nishaanth <nishaant...@gmail.com>wrote: >> >>> @Praveen....it is not possible..in a BST *all the nodes* on the right >>> subtree are greater than the node :) >>> >>> >>> On Sat, Oct 16, 2010 at 3:26 PM, Praveen Baskar <praveen200...@gmail.com >>> > wrote: >>> >>>> @nishaanth: wat if the left child of the right node has a negative value >>>> >>>> >>>> On Thu, Oct 14, 2010 at 11:12 AM, nishaanth <nishaant...@gmail.com>wrote: >>>> >>>>> >>>>> >>>>>> Just see the value of the node at every point, if it is greater than >>>>> zero dont recurse the right sub-tree, as simple as it is.print the node u >>>>> inspected if it is less than zero. >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> S.Nishaanth, >>>>> Computer Science and engineering, >>>>> IIT Madras. >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Algorithm Geeks" group. >>>>> To post to this group, send email to algoge...@googlegroups.com. >>>>> To unsubscribe from this group, send email to >>>>> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com> >>>>> . >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/algogeeks?hl=en. >>>>> >>>> >>>> >>>> >>>> -- >>>> By B. Praveen >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Algorithm Geeks" group. >>>> To post to this group, send email to algoge...@googlegroups.com. >>>> To unsubscribe from this group, send email to >>>> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com> >>>> . >>>> For more options, visit this group at >>>> http://groups.google.com/group/algogeeks?hl=en. >>>> >>> >>> >>> >>> -- >>> S.Nishaanth, >>> Computer Science and engineering, >>> IIT Madras. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Algorithm Geeks" group. >>> To post to this group, send email to algoge...@googlegroups.com. >>> To unsubscribe from this group, send email to >>> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/algogeeks?hl=en. >>> >> >> >> >> -- >> By B. Praveen >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to algoge...@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@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 algoge...@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- By B. Praveen -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@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.