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.
What is the output of the following php code?
What are default session time and path?
What is the difference between echo print and print_r in php?
Why do we use query?
where do we use htaccess?
Where can I find php ini file?
What is the function file_get_contents() usefull for?
What are new features in php 7?
What is serialization / object serialization ?
How can I convert ereg expressions to preg in php?
Explain Creating and Naming an Array?
What kind of variable is age?