Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions exercises/two-bucket/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ Your program will take as input:
- the size of bucket one, passed as a numeric value
- the size of bucket two, passed as a numeric value
- the desired number of liters to reach, passed as a numeric value
- which bucket to fill first, passed as a String (either 'one' or 'two')
- which bucket to fill first, either bucket one or bucket two

Your program should determine:
- the total number of "moves" it should take to reach the desired number of liters, including the first fill - expects a numeric value
- which bucket should end up with the desired number of liters (let's say this is bucket A) - expects a String (either 'one' or 'two')
- which bucket should end up with the desired number of liters (let's say this is bucket A) - either bucket one or bucket two
- how many liters are left in the other bucket (bucket B) - expects a numeric value

Note: any time a change is made to either or both buckets counts as one (1) move.
Expand Down