binary search tress using classes

Peter Hansen peter at engcorp.com
Sun Oct 28 08:05:50 EST 2001


Terry Reedy wrote:
> 
> <christy_girl99 at yahoo.com> wrote:
> > I was wondering if anyone had a binary search tree module I could
> > use? 
> 
> The way to do this in Python is with a dictionary.  Without being
> fancy about the definition of 'word', you need 10 lines or less for
> the whole program.  I believe I've seen the code posted.  Using
> classes and 'modularity' is way overkill.

Maybe not "overkill" for a class assignment. :-)

-Peter



More information about the Python-list mailing list