Please find code @ https://ide.codingblocks.com/s/161553. This code was not able to pass one test case. Can you please help.
Structurally Identical (Binary Tree)
Rishabh, I have edited your code, there was a very small changes in the bool Isidentical function of the code, you are required to use only 3 conditions in your code, pls refer to them … Try to submit the code now…
Does structurally identical doesn’t means that data at every node should be equal in both trees?
Or we just care about if shapes of both the trees are identical or not?
Only you have to consider the shape of both trees, data doesnt matter to be same in this case…
Since, you arent replying anything, I am marking this doubt as resolved… You can reopen it if u still face any issues…