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.
Really good!
Would benefit from not asking for a function, but for a regex, that is then used in
"$something".replace( $yourRegex, $something )
somehow. I don't see how you'd replacedomain.tld
tocodewars.com
and return a regex though.Maybe have us write a regex that matches the wanted string ( starting with
/
, not ending in/
, otherwise unchanged ), with a subexpression match for"domain.tld"
( which can vary ).Anyhoo, this is not it.
Only one test?!
No random tests.
No sample tests.
Wicked!
Freaking, Awesome!
You should clean your lists of duplicates first:
Can each list have duplicates?
A feature I would like to see.