Tip 1 : Participate in live contests on websites like Codechef, Codeforces, etc as much as possible.
Tip 2 : Practice previous interview questions from LeetCode, GeeksForGeeks.
Tip 3 : Revise Computer Science subjects like DBMS, OOPS thoroughly.
Tip 1 : Only write those things in the resume which you are confident of and keep practicing.
Tip 2 : Have some projects on resume.
- Morning time
- Environment was good.
- No
- Interviewer was good



If the input tree is as depicted in the picture:
The Left View of the tree will be: 2 35 2
s1- his was again a very standard question and solved it using recursion.
s2- The root node of the tree is 1, left child of 1 = 3



- Tell me the diference between Mutex and Semaphores with a real-life example.
- What is Normalization and why it is done?
- What is REST API?
- Write a shell script to parse a log file.
Tip 1 : Read Galvin and by Coding Ninja practice at least 100 questions.
Tip 2 : Practice coding by geeks for geeks
- Morning time
- Environment was good.
- No
- Interviewer was good



s1 -This was solved by me through dynamic programming. Let dp[i][j] denote the maximum possible weight you can fill in the bag with a total capacity of j using exactly one stone of each color from 1 to i.
s2 - Now you can club all same-colored stones in a vector. Then this problem is same as the classical knapsack problem and I passed all test cases and selected for the next round.



[1, 2, 3, 4] is a strictly increasing array, while [2, 1, 4, 3] is not.
s1- Firstly I gave recursion approach but then the interviewer
s2- asked me to optimize that so I gave him a standard DP approach for the longest increasing subsequences by storing the result and use them for future calculations of bigger problem.



The given Linked Lists are merging at node c1.
In this case, c1 is 'MERGING POINT'.

s1- At first I gave the interviewer a complete brute force by considering each element of the first list and comparing it with each element of another list but that was inefficient.
s2- So I gave the interviewer optimal approach by finding difference of lengths of linked list and then traverse bigger linked list to difference. Now start traversing both linked lists till we find the common element. This solution impressed the interviewer.

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