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.
This comment is hidden because it contains spoiler information about the solution
I didn't knew you could do that with a ternary operator, nice.
This comment is hidden because it contains spoiler information about the solution
Doesn't have a place in production code, has to be more readable.
NICE!
I don't think using regex on a kata called "Regex validate [...]" is missing the point. This regex is also
O(n)
with respect to the input length, notO(1)
.All of these solutions use REGEX. I mean.. it works, and is definitely the best practice because of O(1) complexity but it's also kind of missing the point imo.
You blew my mind with that solution 🤯
Would that not include 5? I thought it was inclusive if you did it that way.
Thank you for providing a WHY this is not best practice. Much appreciated.
Its usable for codewars only, IRL lead would beat ur ass for coding like that
( ͡° ͜ʖ ͡°)
Another level solution 👏
Oooh! I like this solution. It's quite clever. Nice work. 🙌
Thanks. Though I haven't updated this kata I feel I feel should mention that I created it before const and let were a part of JS. :)
Loading more items...