will u please elaborate the logic
Https://ide.codingblocks.com/s/264559
ya bhaiya it is of structruall idenetical tree
@Aditya-Kushwaha-914550392281281 the logic is simple we are basically comparing each node in postorder form (at every step they should be equal else return false)
i hope its clear if yes dont forget to hit like and mark resolved otherwise ask
i did not understand that how we check that both trees are structurally identically jusrt by saying return leftsubtree and rightsubtree
will u plzz send a refrencev of dry run of it
@Aditya-Kushwaha-914550392281281 agar 2 tree identical hai structure wise toh jab kisi ek node se left mein call karte rahenge toh dono same time pe null pahauchenge and agar dono saath mein null yaani base case toh return true phir right ka check karo agar mila toh return true else false aise karke socho
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.