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.
In
PHP
, assuming the kata aims for strict comparison, it needs to add a fixed test like:That would invalidate some solutions (mine included x_x) that uses built-in functions with non-strict comparison.
Ruby 3.0 should be enabled.
CoffeeScript translation
This is inconsistent across the languages (this is not tested in the original language, but it was written together with the original language).
This requirement doesn't explain what should be returned (so is it
"MTS Test"
or"MTS"
after all?), and looks like Giacomo is too lazy to clean up the mess he's made with his terrible translations...Python and Ruby: the number of tests is so small some inputs may not be generated at all.
Python version expects
"MTS"
for numbers starting with099
.Ruby version expects
"MTS"
for numbers starting with099
.Sorry but such an example has been attached before - try to add some extra options.
@donaldsebleung
Please, your anti-cheat is a black box that nobody knows how it works.
Dont work correctly in Java
Too simple even for an 8 kyu. I would add some edge cases like negative prices for example.
static keyword is missing in the method declaration and you are giving the answer to the people.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
JavaScript version needs random test cases
Loading more items...