Tip 1: Prepare DSA well. I personally recommend Coding Ninjas for interview preparation.
Tip 2: Be confident and stay relaxed during the interview.
Tip 3: Revise your projects—how they work and what their functionalities are.
Tip 1: Keep your resume concise—preferably one page—and include only the skills you are confident in.
Tip 2: Do not include false information on your resume.



You can’t sell without buying first.
For the given array [ 2, 100, 150, 120],
The maximum profit can be achieved by buying the stock at minute 0 when its price is Rs. 2 and selling it at minute 2 when its price is Rs. 150.
So, the output will be 148.
Using DP gave an optimal solution.



By Using a Priority Queue.
Alok has three daughters. His friend Shyam wants to know the ages of his daughters. Alok gives him a first hint.
1. The product of their age is 72.
Shyam says this is not enough information. Alok gives him a second hint.
2. The sum of their ages is equal to my house number.
Shyam goes out and looks at the house number and tells, “I still do not have enough information to determine the ages”. Alok admits that Shyam can not guess and gives him the third hint
3. The oldest girl likes strawberry ice cream.
Shyam is able to guess after the third hint. Can you guess what the ages of the three daughters are?




The left view of the above binary tree is {5, 7, 14, 25}.
By Using BFS.
I solved the coding question but couldn't answer 2–3 theoretical questions based on Python, such as multithreading concepts. So, I think that was the main reason I was rejected.



By using DP, I was able to solve.

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