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.
This one surprised me in a good way. At first it feels purely arithmetic, but once you get into it, it becomes more about structuring a small pipeline of transformations — generating values, breaking them down, and accumulating results carefully. I like problems that combine number logic with digit‑level thinking. It’s compact, but it definitely rewards a clean and intentional approach. Thanks for the thoughtful challenge!
This comment is hidden because it contains spoiler information about the solution
lol
this translation was rejected at some point, but the kata now has a Java version
Unfortunately those are the messages generated by the NUnit test framework. It is possible to add a custom assertion message, but it will be added on top of the existing one rather than replace it.
I did add a custom message with the input values, and I lowered the random tests' range that was generating absurdly long lists. Also, I'm not sure if it was the case before or if it is a result of the upgrade to C#12 + fluent NUnit assertions, but the messages do tell you a bit more:
Combined with the changes I made, this should be enough to debug one's solution in C# for this kata.
Please don't post solutions in kata's Discourse.
This comment is hidden because it contains spoiler information about the solution
JavaScript
an interesting kata to practice reduce :)
A good exercise, makes you think. You know the answer, it's just out of reach.
Go translation ^-^
the problem seems still to stay for Python.
When Kata starts "In this simple exercise", don't believe it
Fixed by OP
Approved
python new test framework is required. updated in this fork
Loading more items...