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 )
1439Binary 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.
1389Post New Amazon PHP Interview Questions
What are the three ways to skin a component?
Define 'retain' keyword?
What is the difference between windows server 2012 and 2016?
Explain the microsoft sql server delete command? : SQL Server Architecture
What is methods in oop?
What is the web.config file in asp?
Where we can display lightning component ? : salesforce lightning component
What is whois command?
How do I setup a local sql server database?
What is the difference between equality of operations or conditions?
Explain what is the difference between functions abs() and fabs()?
What are the facts that can compromise data integrity?
What is the formula for power gain when input gain & output gain is given?
What is openquery?
Describe datareader object of ado.net with example.