i built this code only one one node, but not giving correct output
Check error in code in lca 1
@as159925 hey your logic is not correct ,use array or vector in place of dqueue and compareboth arrays from starting and break when both are not equal ,here is pseudo code for it as taught in lecture:
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.