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


Groups > comp.lang.python > #38879

Binary tree implementation

Date 2013-02-15 00:48 +0530
Subject Binary tree implementation
From Megha Agrawal <megha@greybatter.com>
Newsgroups comp.lang.python
Message-ID <mailman.1781.1360869539.2939.python-list@python.org> (permalink)

Show all headers | View raw


[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 :)

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web