MCPcopy Create free account
hub / github.com/SHY-Corp/LeetCode-Solutions / treeUtil

Method treeUtil

C++/606. ConstructStringFromBinaryTree.cpp:53–63  ·  view source on GitHub ↗

this function traverses the tree in preorder traversal while creating the string ans first we add an opening bracket add the value of current node is it's not null recursively solve the problem for left child if left child is null and right child is not null add opening and closing brackets recursively solve the problem for right child

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected