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.
😂just because
Why the ugly obfuscated code though :/
Clever, and far from obscure.
Makes it very easy to understand what's going on here, and it's very cool o/
Maybe I should add an extra test for that :)
This comment is hidden because it contains spoiler information about the solution
Just learned something new about regexps :]
Thank you good sir!
Seems it has something to do with the
delete that[j];
line. If I comment it out, the length change works fine. I'm not entirely sure why you're deleting those items, anyway; if the length changes to omit those items, then they'll be deleted. And if the length doesn't change to omit those items, there are effectivelyundefined
s in place of those items, which isn't a desired effect of splice anyway, right?Yeah-- But you can post spoilers. So you can post your full code, mark is as a spoiler (thereby hiding it from yourself), but we can still see it, and you can still see our replies to it. I'll have a look a tthe gist anyway...
Turns out I can't see "spoiler" comments, since I haven't submitted my solution yet :/
So, feel free to comment my gist :)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Hi guys !
I've given a try at this Kata and my code seems to be working but it seems that it times out :(
I can't find a solution to make it better. Would someone help me with this :) ?