Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 445 Bytes

File metadata and controls

10 lines (6 loc) · 445 Bytes

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.