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.
what's going on here.. looks clever tho
Practically, don't think this will ever need to be scaled. It's tic tac toe. If possible future scaling isn't an issue, why even bother future proofing it?
All should be addressed in this fork
Fixed in this fork
Fixed in this fork
Description has a lot of markdown issues
Should be language-agnostic
Does not mention whether the constraints of character of strings given, so solvers have to assume that both
a
andA
represent the 1st character in alphabet based on the examples ... Whilst tests only expect lowercase letterschatGPT probably got the answer from you!
that answer is from way before chatgpt was a thing lol
nice use chatGPT
Over 1000 people must have independently stumbled upon this masterpiece of readability 😂
This answer is what the kata asked for, not the top voted solution. I think this should be top voted.
I didn't knew you could do that with a ternary operator, nice.
I really liked this solution, however I found a little bug.
The '.' in 'www.' currently matches any character, which means if my input is 'wwwsomething.com' the function will return very weird values, depending on the number of w's.
I suppose you meant to write that as 'www\.', to match only dots.
Clever indeed (and way faster than most other submissions)
This comment is hidden because it contains spoiler information about the solution
Loading more items...