Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
AH! I overlooked the subtlety of the known digit! Thanks for the hint.
Ths FSM given in the referenced link: http://aswitalski.github.io/img/FSM-binary-divisible-by-five.png, of the problem description is incorrect; this, because the "101" string, stipulated in the problem description as correct, is not accepted by the FSM: starting from state 1, a one is read to transition to state 3; reading a zero in state 3, transition is back to state 1; whence a read of one therein re-leads to state 3. But, state 3 is not a final state.
Yes. I also got the same problem: <2> expected but <1> found.
The Kata has a problem in the test cases: 1) assertEquals( "Answer for expression '?*11=??' " , 2 , Runes.solveExpression("?*11=??") ); and, 2) assertEquals( "Answer for expression '??*1=??' " , 2 , Runes.solveExpression("??*1=??") )
Each of the test cases: 1) and 2), should be matched against unity (1) and not 2; this, because the problem description says to choose the smallest found solution: 1 is the smallest solution solving both ?*11=?? and ??*1=??