Data hosted with ♥ by
Pastebin.com
-
Download Raw
-
See Original
class
Node
{
public
String
name
;
public
List
<
Node
>
children
;
}
void
printNodeTree
(
Node root
)
{
print root.
name
;
for
each
(
Node currentNode in root.
children
)
printNodeTree
(
currentNode
)
;
}