MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / minTime

Method minTime

Trees/burningTree.cpp:150–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 int minTime(Node* root, int target){
151 map<Node*, Node*> nodeToParent;
152 Node* targetNode = createParentMapping(root, target, nodeToParent);
153
154 int ans = burnTree(targetNode, nodeToParent);
155 return ans;
156 }
157};
158
159int main() {

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected