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.
I don't find that unreadable. You gotta get used to reading long arithmetic expressions, especially when it saves your solution from being linear over the value of a parameter.
That is common, the final tests are often MUCH more demanding.
This comment is hidden because it contains spoiler information about the solution
But do you realize that your solution has worse time complexity, worse space complexity, is completely unintuitive, and pretty much garbage in the whole?
Its not clear at all. It might be clever but its unholy unreadable.