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.
This comment is hidden because it contains spoiler information about the solution
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.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).
I have a couple of more ideas, but oh gosh, creating these is exhausting. Most of the bugs presented in the XCOM bug fixing tasks are very simple, and I want them to be interesting for unexperienced programmers to draw their attention to traps and pitfalls lurking out there in the wild. But then I need to be careful to not make the theme too scary for beginners, and the problem must be set up in a way that it is worth actually fixing rather than discarding the whole initial code and rewriting it from scratch. I am glad that the experienced users seem to like the challenges. I would still love to hear what the target audience thinks about them. It would not be much sense in creating easy problems which scare off beginners and which are liked by hardcode coders solely due to the theme and setup :)
I can relate, lol
If you have a nice tests to share, i would gladly add some
You can add your own testcases. ( I did. )
And yes, there is an
O(n)
solution.Could you, please, approve this kata?
I made some slight changes to that one. You may want to hit the "reset" button before continueing.
Thanks, here's the next one. An intermezzo, before moving to the harder strategies.
Someone can approve it right now. I hope there'll be new ones in the series.
Thanks, I'm not sure I'll continue the series beyond these two strategies aimed at beginners. More advanced strategies are likely to remain in beta for ages ;)
Wikipedia actually says it's lit for odd seconds...
Loading more items...