I can’t understand the input format of the question. Could you please elaborate the input…
Can't Understand Input Format
hello @rmukhopadhyay_be17
Here Input is taken in pre-order (root,left,right) fashion here the first value is our root_value and for every node true tells us the node exist and the next value is the node value and false means that the node is NULL
refer this ->
