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 )
2074Binary 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.
1901Post New Amazon PHP Interview Questions
What is the purpose of having stored procedures in a data-based?
What is the transaction code to access mrp list?
Explain the use of compress option in exp command.
what is the procedure and explain about real time scenario.
What do xml editors check?
What is the buffer limit?
What are the advantages of linked list over an array?
What is mocha?
How data flows from sd to copa? : co-pa
When a company s accounting year-ends on a day that is other than the end of the calendar year what is called in accounting?
What are the exemptions in android?
What is java ee server?
Who introduced objective-c & when?
What are the functions in excel?
Difference between SAS STATA & SPSS?