Cover image for Amazon Lab126

Amazon Lab126

Part of Amazon
Engaged Employer

Amazon Lab126

Add an Interview

Interview Question

Hardware Design Engineer Interview


Amazon Lab126

A fish tank is filled with 10 gallons of dirty water, connected to a pump that filters at the rate of 1 gallon/hour. How long does it take until the tank is completely clean?

Interview Answers

2 Answers


The tank is never completely clean. The cleanliness is like a decaying exponential function which never quite reaches 0% contaminants.

Anonymous on


The last answer is true, but it is also useless in terms of an engineering project. A better answer to give is: do a few iterations of the decaying exponential to demonstrate your grasp on the problem. Then assign an good enough definition of completely clean and plug in numbers until you get around that number.

Anonymous on

Add Answers or Comments

To comment on this, Sign In or Sign Up.