FIND SUM AT LEVEL K - Doubt

I am having a hard time understanding the inputs given to generate trees. Please tell me how the tree would look like in the given testcase. Also how do you know that the tree has to be constructed in that way.

hey @Bumblebee, yes this testcase is difficult to understand. I suggest you to go through this thread. Complete question is expalined here very well

1 Like

Thanks for the link.

hey @Bumblebee , if your query is resolved. Please mark this doubt as resolved and rate me on the basis of your experience.
rating option will appear when to mark this doubt as resolved