The Algo Blog
Blog on algorithms, puzzles, programming .... musings of a computer engineer.
n-ary trees
How do you represent an n-ary tree? Write a program to print the nodes
of such a tree in breadth first order.
Answer: using array of nodes, and use Q
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment