Python Related (3312)
PHP Related (7341)
Scala (340)
R Programming (396)
Kotlin (184)
Apache Groovy (39)
Ruby (245)
Go Programming Language (139)
Objective-C (429)
Programming Languages AllOther (746) 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 )
2151Binary 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.
2007Can we remove an element in a single linked list without traversing? Lets suppose the link list is like this 1 2 3 4 5 6 We need to remove 4 from this list (without traversing from beginning) and the final link list shud be 1 2 3 5 6 only thing we know is the pointer to element "4". How can we remove "4" and link "3" to "5"?
CSC,
6 8824There is a number and when the last digit is moved to its first position the resultant number will be 50% higher than the original number.Find the number?
1 3310What is optimization in c++? when using volatile.optimization is not possible..what does this mean?
1 4084
What is the purpose of the pythonpath environment variable?
What is name of first file that loaded in laravel?
Explain what are some new features introduced in php7?
How to include js from controller and view in zend?
What is iunknown? Explain some of commonly used methods provided by iunknown.
Whenever python exists why does all the memory is not de-allocated / freed when python exits?
Tell me what is the difference between ereg_replace() and eregi_replace()?
Evaulate: 22%5 a) 2 b) 4 c) 0
What do you understand by tail recursion in scala ?
Explain the procedure to pass a variable by value in wordpress?
Where is route in laravel?
Explain the uses of the modules sqlite3, ctypes, pickle, traceback, and itertools.
How do I revert back to my old wordpress theme?
Why do we use inheritance in php?
Describe strsplit() in r string manipulation?