[Tutor] depth first with a twist
antonmuhin at rambler.ru
antonmuhin at rambler.ru" <antonmuhin@rambler.ru
Mon Mar 3 06:21:01 2003
Hello gp,
Sunday, March 2, 2003, 7:41:44 PM, you wrote:
gpc> Hi, I majored in a social science, so I'm hoping this group can help me
gpc> fill in the gaps;) I have a dictionary where each key contains a list of
gpc> values. Values 1 and 2 are parent, and older_sibling, respectively. I
gpc> would like to append an order number onto each list, using parent and
gpc> older_sibling to determine the order, and am looking for an iterative
gpc> solution. I have written a function which works, but boy, is it ugly!
gpc> Anyone care to comment?
<snipped>
Do you want to implemant a tree?
--
Best regards,
anton mailto:antonmuhin@rambler.ru