Skip to content

dominoes missing more general test cases #2196

@zeltbrennt

Description

@zeltbrennt

I managed to complete the exercise with a sollution that should not be marked as correct. In the cantBeChainedTest() all dominoes can be chained, only the chain itself is not valid. If one finds an algorithm that accounts only for that, but never actually checks if the list of dominoes can build any chain, then all tests might pass, but the sollution is not correct.

My sollution passed every test, but would try for ever to find a chain here:

Domino[] dominoesArray = {new Domino(1, 2), new Domino(2, 4), new Domino(4, 2), new Domino(4, 3)};

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions