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 )
2148Binary 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.
1994Can 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 8803There 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 3304What is optimization in c++? when using volatile.optimization is not possible..what does this mean?
1 4070
Given: coordinates of rectangle-> left bottom and right top points. the rectangles create a hole.Find the maximum area of the hole. eg. 4 rectangles create a hole in between. find its area.
How do I download joomla templates?
How do I completely delete a wordpress site?
Is python strongly typed or weakly typed language?
What is tail recursion?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
What technology used by magento?
How can we connect to a mysql database from a php script?
How to register a middlewares in laravel controller?
Tell me how do I determine a post, page, category, tag, link, link category, or user id?
Tell me how to implement you own package in laravel?
What are the ways to define a constant in php?
What are route parameters?
What is a python egg?
What are vector functions?