You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Tests for practice exercises are taken from problem-specifications. It might be the case that there is a test in canonical-data that already catches the case you are talking about? If that's the case, feel free to submit a PR updating the tests for this exercise so they match the tests in canonical data.
If the test that catches your faulty solution is not in canonical data, feel free to submit a PR in problem-specifications adding a new test, and then we can bring it to the Java track after its approved there.
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:
The text was updated successfully, but these errors were encountered: