To obtain a prefix expression, which of the tree traversals is used?

Q & ACategory: Data StructureTo obtain a prefix expression, which of the tree traversals is used?
Admin Staff asked 4 years ago

To obtain a prefix expression, which of the tree traversals is used?
a) Level-order traversal
b) Pre-order traversal
c) Post-order traversal
d) In-order traversal

1 Answers
Admin Staff answered 4 years ago

b) Pre-order traversal