n-ary-tree N-ary tree generation N-ary tree is a tree in which each node has no more than N children. This code is a part of the solution of the IGA Technologies test task.