Tip 1 : Do practice coding questions regularly on platforms.
Tip 2 : Before going interview. Check the interview experience. You will get some ideas.
Tip 3 : Maintain your consistency
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.



Used Dp to solve the problem.




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).
Take the target array first.
Initialize the result as 0.
If all are even, divide all elements by 2
and increment the result by 1.
Find all odd elements, and make them even by
reducing them by 1. and for every reduction,
increment result by 1.
Finally, we get all zeros in the target array.



We have a linked list 1->2->3->4->5->6->7 and so on. You are supposed to swap pairs of a linked list like swap (1,2), (3,4), (5,6), and so on.
1. You may not modify the data in the list’s nodes; only nodes themselves may be changed. Because imagine a case where a node contains many fields, so there will be too much unnecessary swap.
2. If a pair of a node does not exist, then leave the node as it is.
Our idea is to swap the links of each pair from the “HEAD” of the list until we reach the end of the list or there is only one element left.
Here, note that after the swap, the head of our list may change if the size of the input list is larger than one, so we are using a dummy node as a placeholder to splice our result list. In this way, we can start with the dummy node and check if there exists a pair of nodes after the current pointer we perform a swap on their links.



Can you solve each query in O(logN) ?
Used Binary search
1, Why do you want to join here?
2. Tell your strengths and weakness

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