Tip 1 : Prepare DSA Questions from coding ninja or interview bit
Tip 2 : Have knowledge about SQL and datbases
Tip 3 : Practice Atleast 200 coding questions from gfg
Tip 1 : Have some good projects Web Dev projects are preferred
Tip 2 : Resume should be of 1 page
Timing (Between 6pm -7pm)
Environment was friendly
First 40 minutes, we discussed my current company work, university projects, some behavioral questions like conflict with manager, conflict with colleagues etc
Producer consumer problem
What is virtual memory
What is garbage collector, thread vs process.
Timing (6pm -7 pm)
Environment was user friendly
In first 10-15 minutes He asked my current company’s work and some behavioral questions. Then he jumped to coding problems
For the given binary tree [1, 2, 3, -1, -1, 4, 5, -1, -1, -1, -1]
1
/ \
2 3
/ \
4 5
Output: 1 3 2 4 5
Timing (6pm - 7pm)
Environment was user friendly
Interviewer asked me about my day, I told him that I gave second round sitting in a bar, he started laughing and appreciated my spirit. After a short introduction he jumped straight to the coding questions
For the given input array [4, 3, 2, 1], the minimum no. of swaps required to sort the array is 2, i.e. swap index 0 with 3 and 1 with 2 to form the sorted array [1, 2, 3, 4].
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.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you create a function in JavaScript?