...

/

Problem Solving: The Bottle Filling Example

Problem Solving: The Bottle Filling Example

Learn to solve a problem with the help of a real-world example.

Eat an elephant one bite at a time

Even the longest journey requires us to take one step at a time. We write complex code to solve many computational problems. Those problems might look daunting now, but we just need to solve them step by step. To solve a complicated word problem, start by writing steps in simple English.

Press + to interact

Measuring problems

We’ll start with a simple problem—measuring water with the help of two odd containers.

We only have two bottles, a ...