Tip 1 : Rather than focusing on quantity of questions focus on covering all topics
Tip 2 : Do atleast 1-2projects
Tip 3 : Mainly focussed on DSA
Tip 1 : Donot write something which you have not worked on
Tip 2 : Be genuine



Input
4 2
0 1 2 2
2 4 4 5
Output
0
Explanation:
Here, Bob will first fall on the second prop, and he will travel till endpoint 2. Then he will fall on the first prop and travel till the endpoint 0. hence the final position will be X = 0.



Corresponding to given min heap : [1,2,3,6,7,8]

It can be converted to the following max heap: [8,7,3,6,2,1]




Below is the example showing the input tree and its sum tree.

1.Similar to postorder traversal iteratively find the sum in each step
2.Return left + right + current data if left + right is equal to current node data
3.Else return -1
You have 9 balls, equally big, equally heavy - except for one, which is a little heavier.
How would you identify the heavier ball if you could use a pair of balance scales only twice?
Questions on gateway,caching,etc.(Subjective)

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?