Return type should be vector<TreeNode*> instead of TreeNode*
Incorrect Return Type of the method
I am facing the same problem. I tried to change the default code but that didn’t work. I don’t know how some people managed to solve the problem?
Manish_91
#4
Facing same problem with java. Earlier return type was ArrayList, now its just TreeNode when clearly the answer expects a list of TreeNodes.
@abhimanyu