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.
that is insane, it looks like pseudocode
I like your solution, but hate the readability of your code. Your variable names are not intuitive and make your code confusing to read.
Consider changing "buffer" to "placeValue" or similar, "expected" to "result" or "answer" or similar, and "appendDig" to "digit" or "currentDigit" or similar.
what does reduce(1,(a,b)) mean?
This fails for an empty array by returning 0.
also available is Character::getNumericValue
Collectors.joining()
also how do you get stream indentation to line up when posting to kata
i keep forgetting to use .chars() ty
imho it's always a good idea to be prepared
(you will often see here on codewars, that the visible test-cases not always cover all posible incidents)
This comment is hidden because it contains spoiler information about the solution