Interested to Buy Any Domain ? << Click Here >> for more details...
mattoo
{ City }
< Country > usa
* Profession *
User No # 52146
Total Questions Posted # 1 Total Answers Posted # 0
Total Answers Posted for My Questions # 0 Total Views for My Questions # 2095
Users Marked my Answers as Correct # 0 Users Marked my Answers as Wrong # 0
Questions / { mattoo }
QuestionsAnswersCategoryViewsCompanyeMail
Write a function that takes "depth" as argument and return
sum of node's data of that depth.
For instance,
(0) depth 0
/ \
(10) (20) depth 1
/ \
(40) (50) depth2
If I pass get_sum_by_depth(2) ,
it would return 90 (i.e. 40 + 50 )