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.
'nt' ?
Now we can sort solutions by "Best Practice" and "Clever"; both user tags. What about possibiliy to sort by some automatic metrics as well such as code length, complexity or runtime ?
In the linked wikipedia article it is mentioned: "When a computation is finished, its result remains as the top (and only) value in the stack". So basically I would assume an expression that ends with more than one value on the stack would be invalid and should raise en exception instead of returning anything.
Maybe the descriptions should be a bit more specific about the difference - since I was not really sure I just copied my solution from the other problem and it worked here too. For example something like "This is the exact same problem as PG-13 but it has to manage a matrix of size N in under M seconds" ?
This comment is hidden because it contains spoiler information about the solution
Agree, this was my first 4kyo kata and it felt simpler than other 5kyo that I solved earlier.
In java all the assertEquals calls should swap the args. The expected value should be first.
This comment is hidden because it contains spoiler information about the solution