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.

https://ide.codingblocks.com/s/265607 why my code not giving right output of sum at level k .

@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.

@Aditya-Kushwaha-914550392281281 please mark your doubt as resolved

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.