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.
Max (or near max) indexes should be tested for all bases, otherwise invalid solutions can pass, that don't check high enough primes (e.g. base 30, k = 150)
did exactly the same, some 30 years ago, on the C64 ;-)
Also updated the description, adding:
As written in the description:
The ascii block (on the right) should be aligned, like this:
and not messed up, like this:
Oh, and note that 240+ people solved it in python without such a problem, so it's not an issue of the kata.
Cheers
For some more fun and challange, try the code golf version too!
Test case added - some solutions were invalidated.
I could reject solutions with a
\n
in them, but that kills a part of the creativity, and I value the different approaches that you can learn from.I looked for short solutions in the python versiob of the original kata, but didn't find any. Maybe in other languages there were such solutions. I set the size limit so that a simple approach (remove extra spaces + use 1-letter variables) doesn't pass. I will consider lowering the size limit a little.
72 bytes
Great job turning it into a lambda! ;-)
80 bytes
82 bytes, combining my other solution with Fbasham's approach
Nice approach, and can be made a lot shorter --> 91 bytes
99 bytes with a slightly different approach
96 in the fork
106 bytes
102 in the fork
fixed
Wow, I didn't expect this!
Loading more items...