Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Hi; I just solved this and I must agree that it was quite frustrating to debug as the output/display of wrong results is not very clear.
Also, you are clearly on the right track - your recursive logic is correct but your base case is where things are going wrong I think.
Using your code, you are failing 3 of the fixed tests - however, none of these correspond to the trees that you have drawn above though (so I'm not sure how you managed to obtain that drawing).
For example, of the 3 test cases where your code is failing, the first one actually is testing the following pair of trees a,b:
and the expected answer is
False
for this input pair.Hopefully that helps you debug a bit better (I can't share with you more of the test cases because otherwise people could just hardcode the correct answer, as there are no random tests).