One test case failing

code : https://ide.codingblocks.com/s/231992

struturally identical tree… one case is not passed

@chaman9 check line 44. (also you should change the return type to bool)
I have made some changes here have a look https://ide.codingblocks.com/s/231994

thank you that test case is passed now… btw what was the issue if i return 1 or return 0 instead of true and false

@chaman9 there is no issue in that it will yield the correct answer but using int(32 bits) instead of bool (which essentially needs 1 bit only) is overkill dont you think?

1 Like

yeaah understood now thanks a lot

1 Like