Tip 1 : Practice Amazon Tagged Questions on gfg
Tip 2 : Practice DS Algo MCQ's on gfg
Tip 3 : Try to read as much as past interview experiences when you have limited time left for interview(eg:1 or two weeks)
Tip 1 : Do not write anything on the resume which you can't defend on the day of the interview(You might have a cool project but it's of no use if you are not thorough about it on the day of interview).
Tip 2 : Write the work in the project which you done and the impact you created via it and not generic details about the project
28 MCQ's + 2 coding question



As the answer can be large, return your answer modulo 10^9 + 7.
Can you solve this using not more than O(S) extra space?



Do not print anything, just return the number of set bits in the binary representation of all integers between 1 and ‘N’.
Coding Round
Brief Introduction in starting and then two DSA questions(medium and hard)



For the given tree below,
Postorder traversal for the given tree will be [4, 5, 2, 3, 1]. Hence, the answer is [4, 5, 2, 3, 1].




[1, 2, 3, 4] is a strictly increasing array, while [2, 1, 4, 3] is not.
Coding Round
No introduction
3 DSA Questions



If the given sequence ‘ARR’ has ‘N’ elements then the sorted wave array looks like -
‘ARR[0] >= ARR[1]’ and ‘ARR[1] <= ARR[2]’
‘ARR[2] >= ARR[3]’ and ‘ARR[3] <= ARR[4]’
‘ARR[4] >= ARR[5]’ and ‘ARR[5] <= ARR[6]’ And so on.
1. ‘ARR[0]’ must be greater than or equal to ‘ARR[1]’.
2. There can be multiple arrays that look like a wave array but you have to return only one.
3. We have an internal function that will check your solution and return 'True' in case your array is one of the solutions otherwise return 'False'.
The given array ‘ ARR = { 4, 3, 5, 2, 3, 1, 2 } ’
The below figure is a visual representation of the given ‘ARR’ and you can see we can express ‘ARR’ in a waveform array because
4>3 and 3<5
5>2 and 2<3
3>1 and 1<2
And it follows the condition of wave array.

Try to solve this problem in linear time complexity.
Implement a data structure for implementing the feature of showing three last watched movies on Amazon Prime.



insert(X): Inserts an element X in the data structure and returns true if the element was not present, and false otherwise.
remove(X): Removes the element X from the data structure, if present. Returns true if the element was present and false otherwise.
search(X): Search the element X in the data structure. Returns true if the element was present and false otherwise.
getRandom(): Return a random element present in the data structure.
Type 1: for insert(X) operation.
Type 2: for remove(X) operation.
Type 3: for search(X) operation.
Type 4: for getRandom() operation.
It is guaranteed that at least one element will be present in the data structure when getRandom() operation is performed.
Can you implement every operation such that it works in O(1) time?

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?