please explain printing at kth level, as in video am not able to get about how the required level (k=3) will be k==1
BST-level order traversal
Hey,we are subtracting k for each level starting from root.So,when we will reach the 3rd level k will be 1( for root ,k=3 for its child k=2 and for 3rd level k is 1).
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.