My code passed many test cases but failed this one:
Input: [1,2], 1
I'm a little bit confused. I think in this case the path that contains only the root node is the answer required, but the OJ says otherwise. Could anyone help me with this problem? Many thanks!