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.
Java Translation is created.
Please, check it out!
Python, maybe others: shouldn't
Ok, Ooooobe ratherOok, Ooooo? Or is it intended?Direct duplicate of https://www.codewars.com/kata/5469e0798a3502f4a90005c9/
Needs fixed tests with a falsy value as the first element, which is the minimum or maximum.
That would trip up some lazy, buggy solutions like the current top voted one.
( Python )
Needs new framework for tests. Needs tests with empty array. ( Also needs random tests, as raised here. )
maked
Translation Dart
good kata but there are problems random tests are weak in the left function there is no string type check string passes to i one character and not a string as in right in the description it does say about two programming languages it is better to replace this statement with “in your language”.
Hey, I'm trying to translate this kata but what we should return in case of
iis a string and does not appear instris not stated. I think it is worth mentioning and I think that it would probably be easier to return an empty string.Fixed formatting a little bit because of crappy initial code and it passed all of the tests... What?
Why is it even a task? This kata should be retired for good.
No random tests. (atleast in python).
No random tests in all languages
Python new test framework should be used
stringparameter should be replaced with something else since it shadows a builtin libraryThe description doesn't say that there may be recursive callbacks.
It's better if you note it there.
Becase I wrote a piece of code that calls the fourth argument in the beginning, therefore causing "Maximum call stack size exceeded" error.
JS: How about only have a single assertion in every iteration of the random test? Instead of swapping around the arrays & sets, you could increase the amount of tests. Right now it's kinda hard to maintain.
Python translation
Loading more items...