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.
There are some serious issues in your
pageItemCount()
solution, so I'd like to give these hints:default
you can use instead of your construct with an exception. See: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/switch.html(but throwing an exception in a helper class which is not specified according to the javadoc, is not a good idea at all. This breaks the rule of "least astonishment".)
Some test cases proposed by @tannah should be added to the problem.
At least these 3
Test.assertEquals(sumStrings('0', '0'), '0');
Test.assertEquals(sumStrings('0001', '002'), '3');
Test.assertEquals(sumStrings('712569312664357328695151392712569312664357328695151392', '1'), '712569312664357328695151392712569312664357328695151393');
I believe, some of these should be added to problem test cases especially
Test.assertEquals(sumStrings('0', '0'), '0');
Test.assertEquals(sumStrings('0001', '002'), '3');
Test.assertEquals(sumStrings('712569312664357328695151392712569312664357328695151392', '1'), '712569312664357328695151392712569312664357328695151393');
I'll file an issue for this