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
What are traits?
Why did you choose this particular career path?
What is magic quotes?
i'm b.com graduate and doing MCM- 1year(Master in Computer Management. i'm very interested in PHP? Please tell me some suggetion and the scope of PHP in the market. My E-mail pawan.register@gmail.com Thanks & Regards Pawan.
How to get the ip address of the client?
What is a php 5?
Tell me what type of operation is needed when passing values through a form or an url?
Suppose your Zend engine supports the mode <? ?> Then how can u configure your PHP Zend engine to support <?PHP ?> mode ?
1 Answers Rushmore Consultancy,
Are objects passed by value or by reference?
What is the importance of php?
Tell me what is the definition of a session?
Is python easier than php?