I am getting wrong answer in one test case. may you rectify my code


may you sugeest any special case in which my code doesn’t work

In this question, it is not necessary that the data of corresponding nodes is identical, you only need to check the structure. So you need to remove that condition which compares data