MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / preOrderIterative

Method preOrderIterative

others/iterative_tree_traversals.cpp:102–123  ·  view source on GitHub ↗

* @brief preOrderIterative() function that will perform the preorder traversal * iteratively, and return the result array that contain the preorder traversal * of a tree. * @param root head/root node of a tree * @return result that is containing the preorder traversal of a tree */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

test1Function · 0.80
test4Function · 0.80

Calls 5

push_backMethod · 0.80
pushMethod · 0.45
emptyMethod · 0.45
topMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected