home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!iWarp.intel.com|ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!rr2p+
- From: rickr+@CMU.EDU (Richard Dale Romero)
- Newsgroups: comp.lang.c
- Subject: Printing out trees
- Message-ID: <gezTJc_00VQsAo9Vpl@andrew.cmu.edu>
- Date: 8 Nov 92 19:21:44 GMT
- Article-I.D.: andrew.gezTJc_00VQsAo9Vpl
- Organization: Applications Software, Carnegie Mellon, Pittsburgh, PA
- Lines: 8
-
- Does anyone have code for printing out arbitrary binary trees,
- ie, not necessarily full, can have 0, 1 or 2 children?
-
- Any sort of method or strategy would be nice, doesn't even
- really have to be code. I'm just stumped for a nice, efficient
- way to do it--everything I've tried has been ugly.
-
- -rick
-