Tip 1 : Solve RS Aggarwal Aptitude and Problem Solving Books.
Tip 2 : Practice Coding questions from Geeks For Geeks.
Tip 1 : Mark skills with Bold letters.
Tip 2 : Mention projects on resume
- Morning time
- Environment was good.
- No
- Interviewer was good




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).
s1 : During the 1st journey and 3rd journey Alice goes over point 5.
s2 : During the 4th Alice goes over point 11.
s3 : During the 3rd and 4th journey Alice goes over point 7.
s4 : During the 1st, 2nd, and 4th journey Alice goes over point 9.



s1 - Given a grid of size 3*3
s2 - cell (1,1) and cell (3,3) are empty.
s3 - go to :(x+1,y) , (x-1,y), (x,y+1) , (x,y-1), (x+1,y+1) , (x-1,y-1).



1. Room 0 is the only room that is initially unlocked and doesn’t require any key to enter.
2. Any other room can be visited only if you have the key to that room.
3. More than one room can have keys to the same room.
4. You are allowed to visit rooms in any order.
5. You can visit any room multiple times.
Given array
s1 - If a person starts from a
s2 - Path would be , so person took 4 steps to reach room 1
s3 - Path would be , so person took 4 steps to reach room 1
s4 - Similarly, it would give a value 4 for each case, And this is the smallest valid value.,



1. Return the final answer by doing a mod with 10^9 + 7.
2. Pairs {A, B} and {B, A} are considered the same.
s1 - In the first case, the data plans cost 10rs and 5rs, With the first data plan(10rs) we can invite 1st and the 3rd friend because in the binary representation of 10 (1010) the first and the third bit are set, and with the second data plan (5rs), we can invite 0th and the 2nd friend because in the binary representation of 5(101), the 0th and the 2nd bit is set
s2 - Now with all the data plans, we could invite the 0th, 1st,2nd, and 3rd friends, but if we remove any data plans, there will be a friend who will be left. Therefore the answer is 0rs
s3 - In the second case, the cost of all the data plans is the same, so if we remove any one data plan, we will still be able to invite all the friends we invited before. Therefore the answer is 9rs


s1 - For test case 1:
Here, if we construct a road between city 1 and 2, it will cost .
If we construct another road between city 2 and 3, it will cost .
The total minimum cost possible is 2 + 1 = 3.
s2 - For test case 2:
Here if we construct a road between city 1 and 2, it will cost .
The total minimum cost possible is 2.
- Morning time
- Environment was good.
- No
- Interviewer was good
What is the biggest challenge you’ve faced in your current position?
How would your co-workers describe you?
What skills would you bring to the job?
How do you keep up with the latest industry trends?
Tip 1 : Communication is must
Tip 2 : Practice more and more

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?