ques-https://hack.codingblocks.com/contests/c/588/141
code-https://ide.codingblocks.com/s/84513
Getting Run error
Tree-- Find sum at K
Hi @varshney641,
here you can have a much easy approach that calculate the sum for left part of the tree and then the right part and later add both the answer.Try to do this using recursion and think of the base cases too.