find sum at k’th level
Showing run time error
your calculation of sum at level k doesn’t first check if the node is null or not
I think this should work
find sum at k’th level
your calculation of sum at level k doesn’t first check if the node is null or not
I think this should work