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.
hello friend koi mujhe bata skta ke php easy way se aur jaldi kese seekh skte h...plz im waiting for ur answer..
How to convert strings in hex format?
What happens when submit button is clicked?
How to parse configuration file in php?
How to make a class in php?
What is php rest api?
What are the advantages of stored procedures?
What is urlencode and urldecode in php?
Can I use php in visual studio?
Which function can be used to exit from the script after displaying the error message?
Tell me what is the use of "enctype" attribute in a html form?
What is the difference between mysql_fetch_object and mysql_fetch_array?