InterviewBit Problems   Next Pointer Binary Tree : Unsolved


About the Next Pointer Binary Tree : Unsolved category (1)
Bad memory usage checker (1)
This should be O(log n) space (2)
What does it mean by input 2? (1)
Giving wrong answer for inputs (1)
Running the same code with custom input gives the correct answer but on submittin (2)
My solution gives(custom input) : input: 2 123 output: 3 NULL NULL input: 4 1 (6)
I am not able to figure out what I am getting as output when Input is 3. And how (1)