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.
That was my impression as well.
I am impressed by your ability to enchain your entire algorithm. Would you or do you do this in a commercial application?
If so what would be the usecase for doing so? Isn't there a balance between readablity and compactness? Especially if others will have to debug your code in the future? Cheers!
I enjoyed this problem. I love working working with time values. I few iterations and I was able to solve this. I have to be honest though. I used Bard AI a few times just so I didn't have to scroll through MDN a bunch. I wonder if time to solve these problems has steadily improved on average since AI became prominent.
I attempted this using regex. It appears that my valid regex does not pass here. I tested my regex pattern and it works elsewhere. But, not here. Here is the pattern that causes the error: /[\s\p{P}]/gu.
Thanks for the feedback. I can see that people have been able to write this in just one or two lines. And, I will work on eliminating the redundency. Cheers.
This comment is hidden because it contains spoiler information about the solution