Print the sum at kth level

https://ide.codingblocks.com/s/435976,
bhaiya , please check this code, what is problem in this?

Hello @CODER_JATIN please wait i am checking your code.

@CODER_JATIN corrected code:

have you checked my code?

@CODER_JATIN this is your code which i have corrected.

which code are you looking the code which i have shared is your code only.
tell me if you are facing any difficulty?

question ko karne ki approachh sahi hai ? or is there any better approach than this?

@CODER_JATIN see your approach is giving right answer and passing all the test cases so yes your approach is fine too.


you can check this approach as well.

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.