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.
Why is the expected result for an empty string is an empty array, not an array with a single empty element? There's exactly one way to make an empty string - with zero elements. This choice is so irritating, it's not the first time I see this in a kata that has an empty string as a special case. An empty string usually should NOT be a special case actually. I think returning either
[]
or[[]]
should be allowed for the sake of backwards compatibility, but it should've been only the second one, really. The description speficication of one or more is really weird to me, like why? This doesnt make any sense.No tests, you can only try your solutions with attempts.
More, same attempts one time may not pass due to CodeWars 12 seconds time exceed when other time be successful.
JavaScript sample tests throw an error while running. It looks like
Test
was not importedScala translation
no sample tests
The "immediate" behaviour is very unclear.
The current expected behaviour is to invoke the function inside
debouncedFn
immediately, which contradicts with the specs above and common sense. Being synchronously immediate rather than immediate at the next tick (as insetImmediate
) is very different, and evenlodash
'sdebounce
does the latter instead of the former.What? It's not mentioned in the description at all and it's not told how it should be handled.
A couple issues:
It doesn't look like this kata verifies that the function executes in the specified time window (my solution is set to fire off at 1500ms: https://www.codewars.com/kata/reviews/58d1547353e019d4250003da/groups/5b368c2d15535073480011f3)
The Description needs an update; Voile's kata had been unpublished.