Tip 1 - Practice at Atleast 250 Questions
Tip 2 - Ex- Do at least 2 projects
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.



If we have three balls placed at [ 1, 3, 4 ]



At first, move the ball from position ‘1’ to position ‘3’ with cost = 0.
Then move the ball from position ‘4’ to position ‘3’ with cost =1.
As the minimum cost = 1, so you need to print 1.
You have given two strings 'str1' and 'str2'. Find the minimum operations required to convert str1 into str2.



In the given linked list, there is a cycle, hence we return true.




Where distance between two points (x1, y1) and (x2, y2) is calculated as [(x1 - x2) ^ 2] + [(y1 - y2) ^ 2].
The approach which was coming in my mind was only brute force at that time so I asked for a hint from the interviewer he asked me to use divide and conquer but I could not figure out and not able to solve this question.



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.
You have been given the prices of 'N' stocks in an array where each array element represents the stock price for that day.






Input: Let the binary be as shown in the figure:
Output: Linked List: 15 -> 40 -> 62 -> 10 -> 20 -> NULL
Explanation: As shown in the figure, the right child of every node points to the next node, while the left node points to null.
Also, the nodes are in the same order as the pre-order traversal of the binary tree.

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