Skip to content

farbodfld/Discrete-Arithmetic_Implementation-of-Family-Tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Discrete-Arithmetic_Implementation-of-Family-Tree

Printing the graph line by line but in alphabetical order

Print the graph line by line but in alphabetical order according to the following description in the output.

First, print the name of the highest member and then his children in alphabetical order.

Then for those children, print their children in alphabetical order.

And don't print anything for someone who doesn't have children.