What is wrong with my code?
I am clearing the base test case (given in the question) but I cannot seem to clear the other cases please help
What is wrong with my code?
I am clearing the base test case (given in the question) but I cannot seem to clear the other cases please help
You missed out a “return root;” statement after line 54.
And in your int main() you don’t have to sort the tree array given to you.