What’s wrong with my code?
Structurally identical(Binary Tree)
Thanks, Ishita! My code worked now. But how does it make a difference, if its bool or string, shouldn’t it work?
@Sahilgohrisg how do you expect the compiler to perform the conversion from a string to boolean?
All integer values except 0 are converted to boolean true, and 0 is converted to boolean false.