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.
Done
Thanks, I otherwise would have thought this was just a broken implementation in C#.
...except that Array.new() throws an error if given a negative integer and we need to rescue that as well.
Well I'm just over three months into JS. It's one of my first kata and it's meant for utmost beginners. The flexibility provided is only good for someone with no experience.
I have absolutely no idea about Ruby, but I've checked the internals of the Ruby version of this kata and the table looks exactly as you've shown above. Probably, it's evident for any Ruby developer, so, what need for additional details?
Yes, I'm absolutely sure that you should ask other Ruby developers or raise the issue in the support forum. Solving kata becomes too complex if you can't print intermediate results, it's definitely NOT the purpose of CodeWars.
I undestand your point, and the table was available at the beginning of the development of this kata. However, it fastly become evident that the huge table (that's many times larger than a typical solution) clutters up the Solutions page heavily, being duplicated in each published solution. That's why I decided to hide it.
I don't know what language are you using to solve this kata, originally it was Python, and in Python the word dictionary says everything you need to know to use the table. Tell me what language do you use, and how the example should look from your point of view to be evident, and I'll include your example in the kata description.
As for offline development, you can always use some online code to print the structure (in Python,
repr
function does it perfectly) and then re-insert it into your offline code. You may consider it a part of the kata task. ;)