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.
I'm not sure where you want to re.iter over? It still requires a string, so you end up with having to join the input array so you have something to iter on.
no (unless you're talking about the interanl one that is stored in the match object)
(That would still require a string to be built)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Your solution has to compile the regex for every element in the array. You could compile it first to eliminate that overhead, but I suspect it would still be slower as it involves multiple calls to match instead of a single call. str.join and re.findall are both very efficient operations.