Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38879 > unrolled thread

Binary tree implementation

Started byMegha Agrawal <megha@greybatter.com>
First post2013-02-15 00:48 +0530
Last post2013-02-15 00:48 +0530
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Binary tree implementation Megha Agrawal <megha@greybatter.com> - 2013-02-15 00:48 +0530

#38879 — Binary tree implementation

FromMegha Agrawal <megha@greybatter.com>
Date2013-02-15 00:48 +0530
SubjectBinary tree implementation
Message-ID<mailman.1781.1360869539.2939.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Hello All,

I am a newbie to python language. I need your help in implementation of
Binary tree in python. I have a count of nodes and I need to draw a binary
tree. Suppose if count is 5 then tree will look like
                                                                  1
                                                                 /   \
                                                               /       \
                                                              2         3
                                                             /  \
                                                            /    \

                                                           4      5.

Does anybody have code for this? Or any hint?


PS: Sorry for previous mail !!

Thank you :)

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web