Interview Question
- 0of 0 votes
AnswersNeed to traverse below n-ary in postorder and throw error message if the node are cyclic
- sunny346 October 13, 2016 in United States
Node001
/ | \
/ | \
/ \ \
Node002 Node003 Node004
/ / | \
/ / | \
Node005 Node006 Node007 Node008
/
/
Node009
\
\
Node003
In above case it should through error because Node009 has child Node003 which is derived from it.| Report Duplicate | Flag | PURGE
Trees and Graphs
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.