But does there exist a general method to do this for all binary trees . . I mean if this answer were true then all binary trees would be complete :) correct me if i think wrong
On 4/17/11, rahul rai <raikra...@gmail.com> wrote: > But does there exist a general method to do this for all binary trees > . . I mean if this answer were true then all binary trees would be > complete :) > > On 4/17/11, Sreeprasad Govindankutty <sreeprasad...@gmail.com> wrote: >> Yes this is the solution when the binary tree is complete binary tree >> >> Thanks and many regards, >> Sreeprasad Govindankutty >> >> >> >> On Sat, Apr 16, 2011 at 3:57 PM, Pratik Kathalkar >> <dancewithpra...@gmail.com >>> wrote: >> >>> I think this solution is applicable if the binary tree is complete >>> binary >>> tree, isn't it? >>> >>> On Thu, Apr 14, 2011 at 12:52 AM, Harshit Gangal >>> <harshit.gan...@gmail.com >>> > wrote: >>> >>>> it 2*node and 2*node+1, if binary tree is stored in an array >>>> >>>> >>>> On Thu, Apr 14, 2011 at 12:36 AM, Vishakha Parvatikar < >>>> vishakha.parvati...@gmail.com> wrote: >>>> >>>>> Given a binary tree, write a program to find the cousin nodes of the >>>>> given node. >>>>> >>>>> -- >>>>> 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. >>>>> >>>> >>>> >>>> >>>> -- >>>> Harshit Gangal >>>> Fourth Year Undergraduate Student >>>> Dept. of Computer Science >>>> JIIT, Noida , India >>>> >>>> -- >>>> 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. >>>> >>> >>> >>> >>> -- >>> Pratik Kathalkar >>> CoEP >>> BTech IT >>> 8149198343 >>> >>> -- >>> 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. >> >> > > > -- > Rahul > -- Rahul -- 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.