No one has replied
@YoungBella Opps, thanks for pointing out, should have been 6 + 3 = 9
Oh, you are right! thanks for telling me..
@scott.shao.5 I think the trees in the test cases are unbalanced, iterating from the head is much slower than iterating from end: 18 ms vs 1ms.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.