Tip 1 : Practice different types of problems from different topics
Tip 2 : Be consistent
Tip 3 : Start with easy, then go to medium level problems and few hard problems if you become comfortable with medium
Tip 1: It should not exceed 1 page
Tip 2: List only significant projects
The Interview took place in the evening, interviewer was helpful and was trying to give me hints if I got stuck and I was able to catch those hints. It was a DSA and Problem Solving round where I was supposed to solve 2 problems in a span of 1 hr.

Numbers on the balls may not be unique.




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).
I had already solved this problem before I was aware that this can be solved using BFS so I quickly told the interviewer that we can solve this using BFS and he said ok you can start with the coding so I quickly jumped to the coding part since I knew the logic already, So my luck worked in the 2nd problem.
This round also took place in evening, it was a machine coding round. Interviewer was good, he explained me the problem statement patiently and I was free to ask any doubts I had, I clarified few assumptions with the interviewer.



For a (6 x 6) board, the numbers are written as follows:

You start from square 1 of the board (which is always in the last row and first column). On each square say 'X', you can throw a dice which can have six outcomes and you have total control over the outcome of dice throw and you want to find out the minimum number of throws required to reach the last cell.
Some of the squares contain Snakes and Ladders, and these are possibilities of a throw at square 'X':
You choose a destination square 'S' with number 'X+1', 'X+2', 'X+3', 'X+4', 'X+5', or 'X+6', provided this number is <= N*N.
If 'S' has a snake or ladder, you move to the destination of that snake or ladder. Otherwise, you move to S.
A board square on row 'i' and column 'j' has a "Snake or Ladder" if board[i][j] != -1. The destination of that snake or ladder is board[i][j].
You can only take a snake or ladder at most once per move: if the destination to a snake or ladder is the start of another snake or ladder, you do not continue moving - you have to ignore the snake or ladder present on that square.
For example, if the board is:
-1 1 -1
-1 -1 9
-1 4 -1
Let's say on the first move your destination square is 2 [at row 2, column 1], then you finish your first move at 4 [at row 1, column 2] because you do not continue moving to 9 [at row 0, column 0] by taking the ladder from 4.
A square can also have a Snake or Ladder which will end at the same cell.
For example, if the board is:
-1 3 -1
-1 5 -1
-1 -1 9
Here we can see Snake/Ladder on square 5 [at row 1, column 1] will end on the same square 5.
Tip 1: Try to absorb and understand the problem statement properly, ask if any sort of doubts if you have
Tip 2: Think over the problem, how you will design and implement it without directly jumping to the code
Tip 3: Write production level ready code, since the expectation is to write production ready code, user proper naming for the variables, use SOLID principles and design patterns and design principles
It was a hiring manager round, it also took place in the evening, the environment was very friendly and the interviewer was also very chill. We were just having the normal conversation like I am talking to my colleague
He just asked me to tell him about the projects I have done so far and what could have been improved in those projects, how could we have increase the scale of the system and optimise it further, he basically just asked me questions on my resume.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?