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.
There are no random tests.
For error conditions, returning a magic value that might be a valid return value in non-error conditions is not a good idea.
Throw an error, or maybe have solver return
""
instead ( I haven't solved, and I have not read the description closely to see if""
really makes sense ).This comment is hidden because it contains spoiler information about the solution
If we follow the best practice, a function should always return the same type. This will make it easy to translate the problem to languages such as C++ and Java. I would also encourage authors to use type hints in the Solution Setup code.
or if we allow the function to return strings too, then:
dict
of atomic masses inpreloaded
This isn't really true, is it?