Tip 1 : Focus on DSA
Tip 2 : Try to solve the same problem with a different approach to get a better understanding of the problem.
Tip 3 : Stick to the standard set of problems and Have a more focus on Trees because it is companies favourite topic you can expect at least one question in there every round.
Tip 1 : Try to have a single page resume
Tip 2 : Put proper links related to your coding profile so that anyone who is looking at your resume can actually visit and see the same
Tip 3 : Mention all your achievements clearly
This round contains Four-Part which is the standard Amazon QA
Part-1
There will be 7 Debugging questions which you have to solve in 20 min
Part-2
There will be 2 coding questions which you have to solve in 70 min
Part-3
You can expect 20-30 questions regarding Amazon 16 LeaderShip principle where you have to based on 4 options you have to choose the most appropriate one
Part 4
I don't remember the exact number but I guess it was 24 questions in 30 minutes which were aptitude question






A string ‘B’ is a substring of a string ‘A’ if ‘B’ that can be obtained by deletion of, several characters(possibly none) from the start of ‘A’ and several characters(possibly none) from the end of ‘A’.
Two strings ‘X’ and ‘Y’ are considered different if there is at least one index ‘i’ such that the character of ‘X’ at index ‘i’ is different from the character of ‘Y’ at index ‘i’(X[i]!=Y[i]).
So for this, I used a hash map and 2 pointers to solve the question
It was a coding Round
The interview started with his introduction and the told me to introduce myself and then told he will be paste a question in the text editor and I have to write a production-level code for the same



Input: Let the binary tree be:

Output: [10, 4, 2, 1, 3, 6]
Explanation: Consider the vertical lines in the figure. The top view contains the topmost node from each vertical line.
Used Hashmap to solve the same



Used heap in order to solve this quesiton
This interview was taken by an SDM, She had close to 9 years of experience
The interviewer started in the same fashion She introduced herself and then asked me to do the same
Then she pasted the quest link



You do not need to print anything, it has already been taken care of. Just implement the given function.
Let ‘NUM1’ be: “5”
Let ‘NUM2’ be: “21”
The sum of both numbers will be: “26”.
So she told me i will be getting the two values in a form of string
So I told I will first store each digit in the linked list and then used recursion to solve question



Note that the level order traversal must not contain any null values, simply return the tree in level order.
Used bfs to solve the above question
This interview was taken by an Senior SDM, She had close to 18 years of experience
The interviewer started in the same fashion She introduced herself and then asked me to do the same
Then she pasted the quest link



1. You can only increment the value of the nodes, in other words, the modified value must be at least equal to the original value of that node.
2. You can not change the structure of the original binary tree.
3. A binary tree is a tree in which each node has at most two children.
4. You can assume the value can be 0 for a NULL node and there can also be an empty tree.
You have to just focus on the fact when you have to make change in the value

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?