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.
There are loads of other possible TLDs (e.g. 'au', 'ca') that your solution is not taking into account. Not to mention cases like the Hungarian news portal called "index.hu".
True but subdomains are quite tricky since checking the length doesn't solve the problem. Your solution passes if the test is e.g. "images.google.com" but fails with e.g. "google.com.au". I don't know how to take that into account but it's an interesting question.
I thought it was a requirement since the description says "No additional characters are allowed except for those mentioned".
I don't understand how it excludes longer strings like "a:-D" or ";)b". Can you please explain this to me?