MCPcopy Create free account
hub / github.com/Ayu-99/Data-Structures / mirrorBinaryTree

Function mirrorBinaryTree

Mirror a BinaryTree.cpp:30–44  ·  view source on GitHub ↗

Code : Mirror Send Feedback Mirror the given binary tree. That is, right child of every nodes should become left and left should become right. Alt text Note : You don't need to print or return the tree, just mirror it. Input format : Line 1 : Elements in level order form (separated by space) (If any node does not have left or right child, take -1 in its place) Output format : Elements in level

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