X295: Same Binary Tree Exercise

Given two binary trees, return true if they are structurally identical (they have nodes with the same values, arranged in the same way).

Your Answer:

x
 
1
public  boolean MBTsame(BinNode root1, BinNode root2)
2
{
3
    
4
}
5
Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.