binary search tress using classes

Grant Edwards grante at visi.com
Mon Oct 29 11:57:51 EST 2001


In article <mailman.1004246848.30973.python-list at python.org>, christy_girl99 at yahoo.com wrote:

> I was wondering if anyone had a binary search tree module I could 
> use? I need to write a program that counts the number of occurrences 
> of each word in a file, and outputs the word and corresponding counts 
> alphabetically. For example, if input is

I remember this exact homework assignment from 20 years ago
(ouch!).  Though we were using Pascal (hence no classes), it
gives one a nice feeling of continuity, doesn't it?

-- 
Grant Edwards                   grante             Yow!  Zippy's brain cells
                                  at               are straining to bridge
                               visi.com            synapses...



More information about the Python-list mailing list