Incorrect Return Type of the method


#1

Return type should be vector<TreeNode*> instead of TreeNode*


#2

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?


#3

Confirm, the same problem with Python.


#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


#5

Facing the same problem.Please correct it ASAP