Tip 1 : Make a proper schedule/ your own roadmap instead of depending on some random roadmap.
Tip 2 : Practice the previous problems, keep an excel sheet to track the problems you have solved in the past.
Tip 3 : Consistency is the most important thing. Never underestimate yourself, you might take 1 month, 2 months or 8 months to prepare. But with right dedication, you will get placed at your dream company.
Tip 1 : Mention what you know, what you are good at.
Tip 2 : It would be good if the resume contains maximum two pages. One page would be perfect. Because companies would not go through the entire resume, they would try to find the important points only.
Timing : Afternoon(Around 12 Pm)
The interviewer started with his Introduction and later asked 2 DSA Questions.



1. All the paths are directed.
2. Multiple paths can be present between two states.
3. All the states are connected with each other.
4. It does not have any self-loop.
5. At least one path always exists between the two given states.
If ‘N’ = 3, ‘M’ = 2, and given values of paths are
[ [1, 2, 2, 3],
[2, 3, 4, 2] ]
You have to calculate the shortest distance between ‘X’ = 1 and ‘Y’ = 3
In the diagram, we can observe no direct edge from state 1 to state, 3 but we can go from state 1 to state 2 using the normal path of length 2 and then from state 2 to state 3 using the special path of length 2. So the total length will be 4, and we can clearly see that no other path can be smaller than this. Hence, the answer is 4.
1)First calculate how many steps you need to travel on the x-axis to reach the destination
2)Then calculate how many steps you need to travel on the y-axis to reach the destination
3)Add the no of steps you got from step1 and step2.



Consider the 2 * 2 grid
Let's call the four cells in the grid as A,B,C,D. In this grid, it is allowed to move from Cell A to Cell B, Cell B to Cell D, Cell C to Cell D and Cell D to Cell C. There are two paths that start from A and ends at D:
1) A->C->D
To follow this path we need to change the value of cell A to “D” and do not need to change the value of cell C. Therefore, the total change for this path is 1.
2) A->B->D
To follow this path we need not to change any of the cell values. Therefore the total changes for this path is 0.
As we can see the minimum changes required to reach the bottom-right cell is Zero therefore the answer is 0 in this case.
Timing : Afternoon(Around 10 Am)
The interviewer started with his Introduction and later asked 2 DSA Questions.
1)Questions based on N-QUEEN
2)Questions based on String Manipulation






The input string(STR) will not contain any spaces.
Assume that all characters in STR are lower case letters.
If characters less than 'K' remain, then append them in a sorted way to the new string.
Let the input string be "edcba" with K = 4.
Let the new string to be formed is initially empty, newString = "".
The first set of 4 characters are, ('e', 'd', 'c', 'b')
Out of these 4 characters, the smallest one is 'b' and hence we add it to the newString and it becomes,
newString = "b"
The next set of 4 characters are, ('e', 'd', 'c', 'a')
Out of these 4 characters, the smallest one is 'a' and hence we add it to the newString and it becomes,
newString = "ba"
Now we are left with "edc" and since we can't get a window of size 4, we sort them in the increasing order and append them to the newString.
Hence, newString thus formed will be "bacde".
Timing : Afternoon(Around 1 Pm)
The interviewer started with his Introduction and later asked 2 DSA Questions and CS fundamentals.
1)DSA Question : 2 sum(Leetcode)
2)Questions based on String Manipulation
3)MySQL Queries
4)OOPS concepts



We cannot use the element at a given index twice.
Try to do this problem in O(N) time complexity.
1)Brute force : using 2 iterations(TC : O(N**2) , SC : O(1))
2)Optimized way : Using an extra space like a dictionary.(TC : O(N) , SC : O(N))

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