Binary tree question -
Node has numeric data (int)
The function takes depth as argument and sum all the value
of the node of the depth.
For instance,
(0) depth 0
/ \
10 20 depth 1
/ \ / \
40 50 60 70 depth 2
so if you pass get_sum(2), you would return 220 which is
40+50+60+70 (sum of depth2)
write the function.
No Answer is Posted For this Question
Be the First to Post Answer
What are the common uses of php?
Explain the advantages of using PHP?
Can I learn php without knowing c?
Hello Friends,I am seeking for a job in php having 2yrs. exp.Please suggest any company openings.
How many ways are there for passing variables between pages in PHP and what are they ?
What is sticky form in php?
Binary tree question - Node has numeric data (int) The function takes depth as argument and sum all the value of the node of the depth. For instance, (0) depth 0 / \ 10 20 depth 1 / \ / \ 40 50 60 70 depth 2 so if you pass get_sum(2), you would return 220 which is 40+50+60+70 (sum of depth2) write the function.
How to call php function from javascript using ajax?
how to extract month from given date by using string functions?
What is beforeRender() used?
can you give me an example code of calling java script function in php variable using AJAX.or with out ajax??????
Explain NULL?