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.
Best solution! I hope one day I will understand regexp so that I can write equally elegant solutions.
should check for non string argument
I didn't know you could do that lol
Approved
Updated Python framework
:) same here
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It really depends on the engine, whether it's compiled (and also the compiler in that case).
Not only is it more readable, it increases efficiency. The other regex (for an arbitrary string of 16 characters) ran 114 steps, this one ran 72. Nice work.
This comment is hidden because it contains spoiler information about the solution
It might depend on the regular expression engine, but I'd imagine a fixed-width look-around can be optimized to some extent; and I think I've run into it where engines don't support variable-width look-around. Only engine I've really looked at code for is Python's and all the goto statements in there make it pretty hard to follow. What I learned there is that you can avoid regular expression DOS with system interrupts using Python's regular expression engine.
This comment is hidden because it contains spoiler information about the solution
Bruh , I can't understand anything.
Loading more items...