How will we pass key1 and key2 as nodes into the function?
if we form new nodes using node constructor and pass them into the function then it doesn’t work
i am not able to implement the function.
How will we pass key1 and key2 as nodes into the function?
if we form new nodes using node constructor and pass them into the function then it doesn’t work
i am not able to implement the function.
Hey @aryamaan1011
If values of key1 and key2 are given in the question, You change the function template then, pass values in the parameters, and not Node* type
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.