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.
Fwiw, you could also get rid of the
let
to really golf it up. :)This comment is hidden because it contains spoiler information about the solution
I'd second this, even after reading the linked wikipedia article and kata description I couldn't figure out how to complete the task whatsoever.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Sometimes it is, as in 'by' or 'why'.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I don't believe this is OOP. This uses an object, but that's not what OOP really means.
I was assuming that this kata's tests were designed to make this kind of solution impossible for performance reasons but I can't argue that it's simple and easy to understand.
This comment is hidden because it contains spoiler information about the solution
I think you mean
NaN
, not"NaN"
This comment is hidden because it contains spoiler information about the solution
Why
-n+m
instead ofm-n
?https://regex101.com/ and https://regexper.com/ are both great websites for visualizing and understanding what different regular expressions are doing. I'm sure there are better tutorials but I learned regex from https://www.regular-expressions.info/quickstart.html
Loading more items...