Amazon Interview Question for Backend Developers

Country: United States

Comment hidden because of low score. Click to expand.
of 1 vote

You can probably start out with the smallest flow [s1, s2] from the coffee machine. You would then compare the differences of [c1,c2] with [s1, s2], [m1, m2], [l1, l2]. Then, you could see that if the differences were negative i.e l1 > c1 or l2 > c2, it might overflow, so you wouldn't choose that particular intake flow. Like this, you can calibrate and choose the particular range (small, medium, or large) and still filling the cup.

- prudent_programmer March 28, 2018 | Flag Reply
Comment hidden because of low score. Click to expand.
of 0 vote

Hey Ajay, You have posted lots of interview questions. Did you really take the interview from Amazon & google?

- Code guru March 28, 2018 | Flag Reply

Add a Comment

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.


is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More


CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More