Skip to content

Create tree which have common child using C#

asad

Asked Jul 7, 2010, 3:52 AM EDT1 answer
Share
LinkedInX
i have to create a tree using C# which have common child....this is C# console program..for example..

A>father

B> left-child of A
C>right-child of A

D>left-child of B
E>right-child of B

E>left-child of C
F>right-child of C

so E is common in both B and C
tree shape would be: 
         A
      B     C
    D   E   F
   G   H   I   J
                  

the tree wud be keep extended next level and so on....

i used link list to solve this problem...but having problem  to track common node/child....could any body plz help me.....or any alghorithom....thank you

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 1 short reply
    • 0
      any help plz??
      0