will u please check my logic
Https://ide.codingblocks.com/s/264874
this approach will only reverse the order of 2 nodes only
vector for that and print accordingly (either simply or in reversed order)
i did not understand this will u please give me a arefrence code
in this code i use 2 stacks this is efficient and better approach
if you have any doubt in this code feel free to ask
why the code not clearing all testcases
actually there is a mistake in the code
sorry for that
root should be pushed into second stack
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.