Amazon Interview QuestionSDE1s
- 0of 0 votes
The 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,
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.
Country: United States