Hello,
I recently tried submitting a solution for Balanced Binary Tree (https://leetcode.com/submissions/detail/472829317/). I'm pretty confident my solution is correct, and I pass this test case when I run my code:
[1,2,2,3,3,null,null,4,4]
However, if I try submitting my solution, it tells me I failed this test case. When I printed out left and right, it was 3 and 1 when I ran my code and 3 and 3 when I submitted it. What's going on?
Thanks