I was trying the same prob on https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/ and my code is https://ide.codingblocks.com/s/313671,,,
Im getting RTE on input
[3,5,1,6,2,0,8,null,null,7,4]
5
4
plz check my code as it is running fine for the sample test cases,