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.
I had the same thing happen. It turns out that number with the dashes was not the number provided by the test. When I was breaking the long arg into individual digits, I was doing (int) n%10 instead of (int) (n%10), which was not giving the desired digits (with some being negative numbers), causing the stack trace later on.
I have just tried a few solutions and it worked fine. I don't understand why you had that...
No, not my printing. Codewars is probably running a wrong test?
yes, it's Java
OK but is it your printing? The inputs are numbers, not strings. Java?
basic tests pass, seeing this with the 'Run Suite'.
Yes, it's weird. Basic tests or rando tests?
Is it your printing?
The Suite fails with a following:
For input string: "6834172015468-4-3-92-4"
test(ToSmallestTest)
Hm.... How???? :)