Tip 1 : Practice DSA questions with all the approaches.
Tip 2 : Give Mock Interviews for better understanding.
Tip 3 : Master atleast 1 development stack with project like WebD, Android etc.
Tip 1 : Give Link of Coding profiles like Leetcode, GFG etc.
Tip 2 : Give Link of projects after uploading to github.
It was in night and the environment was quite good for coding.


Subsequences of string "abc" are: ""(empty string), a, b, c, ab, bc, ac, abc.
I have done this questions earlier so I applied DP and all test cases got passed successfully



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.
We know that right most node in the binary search tree is the biggest node among all node so we will start from there, (reverse inorder traversal).
1. Since we are visiting the nodes in the decreasing order so all we need to care about maintaining the sum of the nodes visited.
2. Updated the node value as sum ( since each node contains sum of nodes greater than that node which means we need to exclude the node value itself).
3.
Update the sum as sum = sum + temp (for the next node in iteration).
It was completely based on my resume and the interviewer was very helpful.



Given 'S' : abcdg
Then output will be : 1 1 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
I have used map to solve this problem in efficient approach
What are ACID Properties?
Explain different types of relationships amongst tables in a DBMS?
Explain different types of keys in a database?
3 cuts to cut the round cake into 8 equal pieces
It was around 2 PM and its just a normal talk with HR
She asked about my normal day routine ?
Any preference for my location?
She asked to tell something about me which is not there in resume?

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?