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.
The explanation for this one was give 5 yrs ago in my reply to @Zed. See the discourse below. Basically you are only cut pasting from the original text - not from the resulting text so that is why there is "BBBB!BBBB!" instead of just "BBBB!", because one of those "BBBB!" was something you just pasted before.
The kata rule "Pasting occurs strictly left-to-right only appending to your current text" is meant to help with understanding this. If you have some better description idea please suggest it.
I find the description still confusing. If I naively think of paste errors why can the output still contain "BBBB!BBBB!"?
there's some description conflict fix it (in histogram diagram)
spoiler flag ;)
yes, that was rather a general note. Considering the size of the problem, there are very little chances that you see any difference. For instance, my solution is slow because of the
z..
thing (among other stuff).(I posted some forks to my solution of you wanna see other possible approaches)
cheers
This comment is hidden because it contains spoiler information about the solution
note: you should avoid string concatenation
Approved. Thanks.
Looks good. Thanks for your work. Approved :-)
Ok, fixed that as well. I somehow interpreted this as number of rolls per side, not total for all sides of the die.
Looks good.
But there is another problem. Random tests have bad numbers e.g
[29, 63, 65, 10, 12, 85]
That's 29+63+65+10+12+85 dice roles which violates the Kata description:
I have added a
show
method to the test suite. The behavior should now be closer to the Java version.Thanks. The original Java tests also display the histogram.
Please add equivalent of the
show
method to your translation.This fun Kata deserves more translations. I put together a Python translation and would be happy about comments and feedback.
For this nice Kata I added a Python translation and the corresponding tests. I would be happy about any comments, improvements, etc.
Loading more items...