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.
Python tests are still wrong.
Testing for '19865 79361\n402152 612510\n607 673\n71952219 91743807\n84965805 55832322\n6715 8029'
Error:
It should work for random inputs too: '3 carry operations\n1 carry operations\n2 carry operations\n4 carry operations\n4 carry operations\n2 carry operations' should equal '2 carry operations\n1 carry operations\n2 carry operations\n4 carry operations\n4 carry operations\n2 carry operations'
3,1,2,4,4,2 should equal 2,1,2,4,4,2
_111
_19865
+79361
99226
clearly 3 carry operations, yet the test case says 2.
It appears that the source is broken when it encounters a 9+9 preceded by or followed by another carry... I was able to generate a hack to my working algorithm to reproduce the incorrect algorithm used to create the test cases. :(
Why are there 200 test cases when there are only 8 possible cases?
This comment is hidden because it contains spoiler information about the solution