Amazon Interview Report
- 1of 1 vote
AnswersThe question is that there are a lot of vm, what is the total vm consumption max. For example, (2,4,8), (3,5,3) this input,
- ajay.raj May 15, 2018 in United States
This means that 2 to 4 seconds have a memory usage of 8 and 3 to 5 seconds of 3, so the answer is 11 at 3 seconds.
Return 11 to it. Note that (1,2,3) and (2,3,4) such that the middle 3+4=7 is good.
Follow up is usage is not constant, such as (1,2,1,2) the first second usage is 1,
The second second is 2, the linear increase, the highest is how much.| Report Duplicate | Flag | PURGE
Amazon SDE1 - 1of 1 vote
AnswerTo push dominoes, find out how many dominoes are standing in the end
- ajay.raj May 15, 2018 in United States
For example, the input is ".R...RL..R..L..", which means pushing the 2nd, 6th, and 12th dominoes to the right and pushing the 8th and 15th dominoes to the left. This example returns 4th. 1,7,16,17 blocks are standing| Report Duplicate | Flag | PURGE
Amazon SDE1