Tip 1 : You can checkout the top Amazon questions on leetcode
Tip 2 : Go through the Amazon's Leadership principles very thoroughly
Tip 3 : Have your basics strong in DS, OOPs and Computer Engineering Subjects
Tip 1 : Keep the resume concise and short.
Tip 2 : Use concise sentence for the description of your projects/experiences so that they specify what you did in as less words as you can.
Got two coding questions and two general question where you have to explain the approach for the coding questions you solved.


1. Escape cells in this problem are all such cells that lie on the edge of the matrix but not on the corner. i.e all such cells which are in the first row, first column, last row, and last column excluding the four corner cells are considered as valid escape cells.
2. A cell once set on fire continues to remain on fire till the end.
3. Note that rows are indexed from 0 to ‘N’ - 1 and columns are indexed from 0 to ‘M’ - 1.
4. The escape cells may also be initially on fire or can catch fire from some neighboring cell.



This round consisted of 2 coding problems. Started with my introduction and the work I did in my previous organisation



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.



1. A node will be in the bottom-view if it is the bottom-most node at its horizontal distance from the root.
2. The horizontal distance of the root from itself is 0. The horizontal distance of the right child of the root node is 1 and the horizontal distance of the left child of the root node is -1.
3. The horizontal distance of node 'n' from root = horizontal distance of its parent from root + 1, if node 'n' is the right child of its parent.
4. The horizontal distance of node 'n' from root = horizontal distance of its parent from the root - 1, if node 'n' is the left child of its parent.
5. If more than one node is at the same horizontal distance and is the bottom-most node for that horizontal distance, including the one which is more towards the right.
Input: Consider the given Binary Tree:

Output: 4 2 6 3 7
Explanation:
Below is the bottom view of the binary tree.

1 is the root node, so its horizontal distance = 0.
Since 2 lies to the left of 0, its horizontal distance = 0-1= -1
3 lies to the right of 0, its horizontal distance = 0+1 = 1
Similarly, horizontal distance of 4 = Horizontal distance of 2 - 1= -1-1=-2
Horizontal distance of 5 = Horizontal distance of 2 + 1= -1+1 = 0
Horizontal distance of 6 = 1-1 =0
Horizontal distance of 7 = 1+1 = 2
The bottom-most node at a horizontal distance of -2 is 4.
The bottom-most node at a horizontal distance of -1 is 2.
The bottom-most node at a horizontal distance of 0 is 5 and 6. However, 6 is more towards the right, so 6 is included.
The bottom-most node at a horizontal distance of 1 is 3.
The bottom-most node at a horizontal distance of 2 is 7.
Hence, the bottom view would be 4 2 6 3 7
Again, 2 coding questions. The result of first two rounds is accumulated and if passed, then moved on to the next rounds





If N = 12 and K = 5, then we have to find the 5’th factor of 12 out of the list of all factors of 12 : [1, 2, 3, 4, 6, 12], the 5’th factor in the list is 6. Hence, the output is 6.
I did the initial solving but the interviewer altered the question a little bit to trick me, which I got tricked. Was not able to code the solution to this altered question but was recommended for further rounds
This round is supposed to be the managerial plus technical round. Since I was applying to the SDE-1 position, I was not bombarded with the questions related to the Leadership principles much except for 2-3 scenarios.
Tip 1 : Prepare your Computer Engineering subjects as well.
Tip 2 : OS and DBMS are the subjects that they most stress on.
Tip 1 : Prepare your Computer Engineering subjects as well.
Tip 2 : OS and DBMS are the subjects that they most stress on.
One normal coding question related to linked list and then most of the interview was on the work that I did in my previous organization.



Was mostly discussing on the projects that I did. With some alteration to them as I could not exactly tell what the flow of the project was. So the interviewer introduced to me the scenarios in the project and told me how the system would look like then.
Tip 1 : Be very aware of the projects you did.
Tip 2 : Clearly tell of the things that you did do and those you did not.
Tip 3 : Communicate effectively. Discuss everything that you do while constructing your solution.

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?