Can anyone help me find the bug in my code to this problem. Mine solution is here. You can uncomment the comments i have put in my code to debug.
I think u r unaware of how LCA will be calculated -
Learn from here -
Can anyone help me find the bug in my code to this problem. Mine solution is here. You can uncomment the comments i have put in my code to debug.
I think u r unaware of how LCA will be calculated -
Learn from here -