Tip 1 : For Data Structure, either start with competitive coding like codechef or topic wise data structure question from Leetcode or GeeksforGeeks.(Advice to do 300 + coding question)
Tip 2 : Participate in different coding contest and hackathon
Tip 3 : Try to solve the problem once, before viewing the solution, It is recommended to see all the optimise solution even after solving the question .
Tip 4 : Can refer youtube channels for Low level design.
Tip 5 : Do at least do project , which will be reflected in your resume,
Tip 1: Always be ready be everything , which is mentioned in resume.
Tip 2: Put at least 2 relevant Project in the resume .
Tip 3: Can put your competitive coding profiles in the resume (CodeChef profile)
A Hackerrank coding link was received on the email, which have a expiration of 7 days. You can attempt the test at any time before it get expired.



As depicted in the photo below, the knight currently at (0, 0) can move to any of the 8 positions: (1, 2), (2, 1), (2, -1), (1, -2), (-1, -2), (-2, -1), (-2, 1), (-1, 2).

If X = 1 and Y = -1, then we need to find out the minimum number of steps to move the knight from (0, 0) to (1, -1).
We need at least 2 steps to move the knight to the desired position.
First move: (0, 0) -> (2, 1)
Second move: (2,1) -> (1, -1)
Here we can see that there are many ways, but we need at least 2 steps. Therefore we will return the value 2.
If a+b is odd/even x+y also needs to be odd/even else return -1;
if a==x && b==y return 0;
if a+b==c+d || a-b==c-d return 1;
else return 2;
This was the normal math logic.
It was around at 4 pm timing. . The round was 1:1 . It mostly focussed on problem solving. The interviewr was very helpful.




knightPosition: {3,4}
targetPosition: {2,1}

The knight can move from position (3,4) to positions (1,3), (2,2) and (4,2). Position (4,2) is selected and the ‘stepCount’ becomes 1. From position (4,2), the knight can directly jump to the position (2,1) which is the target point and ‘stepCount’ becomes 2 which is the final answer.
1. The coordinates are 1 indexed. So, the bottom left square is (1,1) and the top right square is (N, N).
2. The knight can make 8 possible moves as given in figure 1.
3. A Knight moves 2 squares in one direction and 1 square in the perpendicular direction (or vice-versa).
One can apply Breadth first search approach. It will be easily solvable. Just a simple version of BFS.



1. The heights of the buildings are positive.
2. Santa starts from the cell (0, 0) and he has to reach the building (N - 1, M - 1).
3. Santa cannot leave the grid at any point of time.
The main idea is based on greedy. Let's say the range of the current jump is [curBegin, curEnd], curFarthest is the farthest point that all points in [curBegin, curEnd] can reach. Once the current point reaches curEnd, then trigger another jump, and set the new curEnd with curFarthest, then keep the above steps, as the following:
Design the Splitwise system ,
How to design Splitwise
Tip 1: Collect more and more information from interviewer.
Tip 2: Try to start build with basic functionality and at the same time start writing the entity. Always think loud, so that interviewer can also know what you are thinking, and even can help you .
Tip 3: Firstly try to wrap the basic functionality, rather than deep dive in complex features.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: