Not able to understand how to buidtree using sample input
Build tree (Generic)
please check this code you will get idea to how to build the tree
can you tell me where i am going wrong
what exactly you are trying to do in sumf function and what is k
k is level of which i have to find sum i am trying to find sum of kth level in sumf