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.
This comment is hidden because it contains spoiler information about the solution
Man, I need to start remebering that min and max exist.
What on Earth
Nice one.
...why...?
can't be changed
The description specifically states that the string will consist only of letters a-z. So in practive your solution would be best, but in the context of this kata, the OP's is fine.
I wrote this to pass a kata for points, not for you to read. If you want to read stuff that will actually educate you, I recommend my stack overflow answers or my blog.
I'd strongly suggest you fix your formatting. This is pretty difficult to read.
This should probably be a 7kyu, seeing as it's much easier than most other 6kyu.
(Ruby) This kata has one of the most misleading descriptions I've ever read. The examples do not match the test cases in the slightest. Please fix it.
...but why?
We can also exclude R as it's impossible to mutate object in it.
Only C# and Haskell are left (probably?).
Because this is a test which has a purpose of specifically checking that your solution obeys the "don't mutate the input" requirement.
There're many katas which have tests for specific requirements, the most obvious example would be parsers/interpreters/transpilers...
Thanks for the quick response. Quick question though: does this not defeat the entire purpose of the problem? What exactly does it want you to return? I.e. I don't understand why it wants you to return the array with the minimum deleted for all of the tests except for this one.
There's a message below specially for people like you:
Loading more items...