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 comment is hidden because it contains spoiler information about the solution
Updated the solution.
Man, I just destroyed two hours of work on another kata in a glimpse. It all started when I forgot my mouse at work. When I was working on the kata, I had to use my laptops' touchpad, which I am not used to at all. Then suddenly, I must have done a finger gesture which made my browser turn back the page - and all was lost. Now I cry like a baby....!
Thank you for reporting the problem! I think I fixed all issues. Sorry for the inconvenience!
I took your solution as complete working solution.
I have a Factor translation pending which tries out a new method of testing. I do two tests:
x
And if both are passed then the test case is considered passed. This can become somewhat finicky as certain expressions can result in all kinds of invalid, or rediculously large values, but with care I think that it could be the best way to test this kind of kata.
Would it be unreasonable to just expect the unchanged order of the input for this case? Should the kata be changed ( some simplifications are already explicitly not expected ), or should the description just be expanded?
Is this a language-specific suggestion, or do you want this to apply to all languages?