Tip 1 : Good to be clear with the approaches rather than mugging up the solutions. For example: refer Aditya Verma's DP series, it will help you build approach towards DP and recursion based questions.
Tip 2 : Try to keep the SD interview more involved and make it more of a discussion than interview while building the approach/models/classes. (It worked atleast for me).
Tip 3 : Doing these SDE sheets can help, as they cover vast questions and their varied approaches.
Tip 1 : Don't describe any project/intern or workX in vague or generic way. Try to keep it more tech oriented , with some metrics to show your contribution within them.
Tip 2 : Focus on putting job requirement related stuff first and then others, while applying for them. If you've experience then I don't think there is need to mention 10th/12th grades. Can rather add Achievements and Hobbies.
2 questions.
One was to change one line and fix the code don't remember it.
Other was DP question.



Was asked to implement stack class using with exception handling and some specific functions too like copy constructor etc.
Apart form it, they asked about smart pointers, singleton and design patterns in cpp.
Was asked to implement stack class with exception handling and some specific functions too like copy constructor etc
I implemented stack using linkedlist, considering it would be better in terms of space management and complexity.
They asked about smart pointers, singleton and design patterns in cpp.
Asked about my work in previous company.
Asked to implement Snake and Ladder.



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.
1 DS problem and 1 system design question




You are a given the matrix -:
‘mat’ = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
Here the Zig-Zag order of the given matrix is [1, 2, 4, 7, 5, 3, 6, 8, 9]. Hence the answer is [1, 2, 4, 7, 5, 3, 6, 8, 9].
Design the API and interfaces for Download Manager of any browser.
Director level Round: Was asked to add 2 numbers represented using linkedlist



Input:
'num1' : 1 -> 2 -> 3 -> NULL
'num2' : 4 -> 5 -> 6 -> NULL
Output: 5 -> 7 -> 9 -> NULL
Explanation: 'num1' represents the number 321 and 'num2' represents 654. Their sum is 975.

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?