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 )
No Answer is Posted For this Question
Be the First to Post Answer
How do you use an array in excel?
Can I include php in javascript?
What is the different between cookies and session in php?
Is php front end?
What does empty mean in php?
How does session work in php?
Can we use onclick in submit button?
what are in image creating functions in php
What is mysql_fetch_array?
What is session management php?
Tell me how is it possible to propagate a session id?
What is the difference between exception::getmessage and exception::getline?