Is this a faulty test case? - May LeetCoding Challenge 5/7/2020

image

This is an invalid binary tree as input. You can't have the 5 on the end. You need to have null, 5 or 5, null. Your input is wrong.

Comments (2)