-
-
Notifications
You must be signed in to change notification settings - Fork 724
Closed as not planned
Labels
Description
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)};