In theabove qs,please clarify how the inputs are being passed.Like what does true false indicates?
Please explain with an example.
Qs Input not clear
hello @rohangupta569
u need to do preorder traversal to construct the required tree.
true /false are there to tell whether subtree exist or not
