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.
Java:
camelCase
, notPascalCase
Refer here on how to enable backward compatability to not invalidate all solutions
All languages:
n
, there is only 1 valid upper / lower triangular matrix. Hence, the input range should be increased (Also, it should cover range from1 - 3
)Ruby:
Node 18 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: