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.
Hmm, regex is always cool, much like an epigraph 🤔.bt clean.
I didn't even think of using a map. Was so focused on iterating through the array and working with a string it didn't even occur to me. Tunnel vision.
Very hard for beginner!
What's funny is that the better solution is the one nobody talks about
This is the best solution. Nice.
never thought of using regEx like this. its actually pretty cool !
This comment is hidden because it contains spoiler information about the solution
it's a fluke, it does not work with Number.MAX_SAFE_INTEGER
I essentially did the same code but declaring arrays and variables. This is much smoother !
Floored by this! A proper use of RegEx, in my view.
Great solution! I like how you only need to use the reverse method once, so it makes it faster than the 2nd popular option.
Amazing!
They are functionally the same. This answer was made when template literals weren't widespread yet, but today they'd be preferred since they help with readability.
This comment is hidden because it contains spoiler information about the solution
Amazing!!
Loading more items...