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.
Ruby:
Node 12 should be enabled (Refer this and this for more info)
Ruby 3.0 should be enabled (Refer this & this for more detail)
A pretty straightforward algorithm to calculate, and I was able to make a reasonably efficient one, I think...
I feel like the description could use a little work. A few specific points:
This comment is hidden because it contains spoiler information about the solution