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.
Thanks for translating this to Go
I have updated the description to be a clearer about the possible input range.
I have added some random test cases now.
Thanks. I've updated the kata to replace the tabs with spaces.
Because the width of the tab in your IDE is different from the tab in the CW editor, and the code that looks like this in the editor:
looks like this on the solutions page (due to the tab being expanded):
Could you be more specific (and perhaps constructive in your feedback) as to why it is 'not good', pleae?
The tabs vs spaces debate is one that has been going on for years - if using spaces instead of tabs solves some formatting issues on this website then that's fine, but the Initial Solution has 1 tab in it...
Using tabs in the initial solution is not good.
No random tests.
You should specify the input range. Mentioning that "numbers will be big" somewhere in the middle of the text is not enough.
Thanks for mentioning this, @stevejaxon. Marking suggestion as resolved.
...looking into it...will update
I really enjoyed the idea behind this Kata; I loved that it had some personality and that it was very well explained.
I found that it wasn't too difficult to create a solution that worked for the basic test cases (the '5 FIXED TESTS'), however, when it came to the '100 RANDOM QUESTS' I ran into issues that upon further investigation seemed to be related to underflow/overflow.
I spent a considerable amount of time trying to work out where the program should accept the loss of precision in order to match some of the random tests that deal with numbers as large as 1^e+140 (only for the expected result to in the region of 1^e+17).
It would have been great if there was some guidance on how the tests expect integer overlow to be handled or some simple tests that demonstrate the expected output around these edge cases.
If he'd been told how many dragons there really were, he wouldn't have gone there :)
I would suggest changing "a couple" to a "a number"; a couple specifically refers to there being a small number and not a wide dynamic amount, so this description is misleading (and contrasts with the test cases).