did not understand how to input this type of thing
Did not understand how to input this type of thing
@Aditya-Kushwaha-914550392281281 it is given that the max number of children will be 2, so you can input it like a normal binary tree.
Please mark the doubt as resolved if I have cleared your doubt.
@Aditya-Kushwaha-914550392281281
if ( k==0){
sum += root->data ;
}
correct this block like this in the printhKthlevel() function
mam my code still not clearing one test case
@Aditya-Kushwaha-914550392281281 is this code you submitted? You havent taken input for k here and are passing k = 2 everytime.
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.