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 )
2154Binary 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.
2009Post New Amazon PHP Interview Questions
Explain test driver?
Why is HDFS only suitable for large data sets and not the correct tool to use for many small files?
How can we get count of the number of records in a table?
What are the variables in ansible?
Does ios use unix?
What is login agent ? How u used it ?
What is windows form application?
How do know the number of browsers opened?
What are 2 ways of exporting a function from a dll?
Describe the test procedure to determine the vector group
What do you understand by mapreduce?
How do you see your career at Wegmans Food Markets?
Name different methods for io console in ruby?
How do I edit a table of contents in word?
Differentiate between datastage and informatica?