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.
It's a clever cheat, though.
This comment is hidden because it contains spoiler information about the solution
I like buffers.
Did we really let this person suffer for 4 years?
Just iterate and keep track of non-null values, my friend.
To implement this suggestion, the description
will also have to be changed into
Given the task here is to restore an "eggcoded" string to its original string.
So eggcoding
"no egg"
give us"neggo egegggegg"
, restoring it will give us back"no egg"
.I think
"neggo egg"
is an invalid input -- there are no original string that maps to it.Imagine you just started to learn to code. You managed to write "Hello world!" in a browser document and think you're now ready to start with some easy kata's on codewars.
Imagine this is the first one you try and find this piece of art as the "Best practices solution". :-)
That depends on what went wrong...
I've got the right pepes like in the examples, but something went wrong. What should i do?
This comment is hidden because it contains spoiler information about the solution
I thought my solution was very clever... then I saw this.
glad you enjoyed it, and thanks for doing my kata man! Your solution looks really clean btw, and yeah, at least for me, this kata (and the series in general) wasn't as easy as I thought it was. (also partially because I cannot understand regular expressions for the life of me).
Wrote a piece of bug riddled code that took me ages trying to debug. Gave up and tried again next day.
Gave up again, started from scratch. Got it done in 10 minutes with a slightly different approach.
Either I'm a complete moron, or this thing is a lot harder than it looks.
Loved it!
Lua translation
Loading more items...