I did not understand how are we taking input and output for this question . Could you please explain
IP/OP Doubt . How to take input
you have to take input in Level order fashion
and output is the sum of values of all nodes whose depth is k(or at kth level)
check this Reference Code if didn’t understand
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.