Skip to content

two-bucket: incorrect test case in canonical data? #911

Closed
@cmccandless

Description

@cmccandless

According to the [README] for the exercise, valid moves include:

pouring from one bucket to another
emptying one bucket and doing nothing to the other
filling one bucket and doing nothing to the other

The only other restriction stated is

That means, when starting with the larger bucket full, you are NOT allowed at any point to have the smaller bucket full and the larger bucket empty (aka, the opposite starting point)

In other words, if one bucket is full, and the other empty, the full bucket must be the starting bucket.

The last test case description says "Measure using bucket one of size 2 and bucket two of size 3 - start with bucket one and end with bucket two"

With the above rules, what disqualifies the following from being a valid solution for the above test case?
(2 moves): (fill first bucket, as directed) [2, 0] -> (fill second bucket) [2, 3]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions