Tip 1 : Strong Resume
Tip 2 : Atleast 2 good projects
Tip 3 : Good Dsa Konowledge
Tip 1 : Take a nice template for resume, you can even refer sites like novoresume.com. It has got good templates, just pick any with no fancy fonts and colors. Keep it simple.
Tip 2 : Add all true informations on it.
There were 50 questions out of which 10 questions were from Aptitude and 40 questions were from Core Computer
Science field (Dsa + Oops+ CN+ OS), etc.
How much coffee of variety A, costing Rs. 5 a kg should be added to 20 kg of Type B coffee at Rs. 12 a kg so that the cost of the two coffee variety mixture be worth Rs. 7 a kg?
Coding Round



You need to modify the given tree only. You are not allowed to create a new tree.
For the given binary search tree

11 will be replaced by {15 + 29 + 35 + 40}, i.e. 119.
2 will be replaced by {7 + 11 + 15 + 29 + 35 + 40}, i.e. 137.
29 will be replaced by {35 + 40}, i.e. 75.
1 will be replaced by {2 + 7 + 11 + 15 + 29 + 35 + 40}, i.e. 139.
7 will be replaced by {11 + 15 + 29 + 35 + 40}, i.e. 130.
15 will be replaced by {15 + 29 + 35 + 40}, i.e. 104.
40 will be replaced by 0 {as there is no node with a value greater than 40}.
35 will be replaced by {40}, i.e. 40.
Step 1: I made a helper function where i passed the root node and 0 which worked as the sum in it.
Step 2: Made a base case, if root is null, return.
Step 3: Went to the rightmost node of the tree as the rightmost node is the only node which will have highest value in whole BST.
Step 4: Added the root's data to the sum variable which was passed in the helper function.
Step 5: After adding the root's sum with the sum variable, update the current root data with that sum.
Step 6: Call recursively on left side of the tree by sending root.left as root node and updated sum in helper function.



1. The heights of the buildings are positive.
2. Santa starts from the cell (0, 0) and he has to reach the building (N - 1, M - 1).
3. Santa cannot leave the grid at any point of time.
Initially we are at the 0th index. We can take a jump of a maximum 5 (a jump of 6 lands us on 0). From the 5th index we take a jump of 3 and reach on index 8, From 8 we take a jump of 6 and land on 14. From 14 we take a final jump of 2 and reach the other end. We reached the other end in 4 jumps.
Coding



Input: 'list' = [1, 2, 3, 4], 'k' = 2
Output: 2 1 4 3
Explanation:
We have to reverse the given list 'k' at a time, which is 2 in this case. So we reverse the first 2 elements then the next 2 elements, giving us 2->1->4->3.
All the node values will be distinct.
We will use a recursive approach to reverse the given linked list in a group of k. Reverse the first k nodes of the linked list. While reversing the first k nodes of the list maintain previous and next pointer. The previous pointer will point to the first node of the k-group nodes that we are reversing.

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?