Transform To Left-cloned Tree
easy
1. You are given a partially written BinaryTree class. 2. You are required to complete the body of createLeftCloneTree function. The function is expected to create a new node for every node equal in value to it and inserted between itself and it's left child. Check question video for clarity. 3. Input and Output is managed for you.
Constraints
None
Format
Input
Input is managed for you.
Output
Output is managed for you.
Example
Sample Input
15
50 25 12 n n 37 n n 75 62 n n 87 n n
Sample Output
50
Question Video