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.
-1 is the output for when there is no valid solution.
In Elixir, some test cases seem broken. All sample tests pass, but some later test in the full suite always fails, expecting a result of 0 when there is no correct result (-1).
Example:
In this case, not only does 0 not solve the equation, but it also goes against the rule that no number will start with a zero.
I don't like how the tests push the input size too high for many implementations. Some languages are more efficient with this and others will not pass even with decent algorithms.
Just like the description says, inconsistent tests between languages. It's a whole different problem from one language to the next. My language happens to be one of the PITA ones, so I'll pass on this one. Hope this question can get an update for consistency and a better description as well!