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.
yeah this kata needs random tests
I usually manage 4kyu challenges in 30 mins or less, but this took me 6h40mins! I'm not inexperienced in code golfing.
It was an amazing challenge and I enjoyed every minute, even if I slowly lost my sanity.
I think it should be ranked 2 or 3 kyu
comp
andlengthSupUK
are terrible function names. I got stuck for 10 minutes thinking thatcomp
was about calculating then
th number inu
. Please change them to something more intuitiveThis comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
you should test for the variable to be a regex, otherwise one could just use an object with a "test" method
if the tests result negative, you'll be printed a string similar to "isGreaterThan(-1, -4) should be true, because -4 > -1", and sometimes the numbers are the wrong way around
as a new test?
woops, forgot to remove the console.lo
This comment is hidden because it contains spoiler information about the solution
this just makes sure that the number is divisible by 4, not that it's a power of 4
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
and of course 30! is too big of a number to be processed completely by js.
what?
Input: yaph
Output: Nice try, hacker :)
what??
Loading more items...