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.
No, that's not what the kata asks, the number can be even or odd (it doesn't matter) what needs to be odd is the number of times it appears in the array.
This comment is hidden because it contains spoiler information about the solution
i did benchmarking on code speed. As i see, this is faster than 'one line solution'. Please correct me if i am wrong.
No idea why i put $reserverWords tag :D it should be $reverseWords :D
wow perfect!
This comment is hidden because it contains spoiler information about the solution
ruby random tests are giving wrong result.
ezarV
["ezart", "Denguil", "lbart", "Galman", "andar"]
Expected: "zart", instead got: "ezart"
there is even no "zart" in the array.
Log
elezrt
["Earth", "elezart", "Denguil", "Gamilas", "halbart"]
Expected: "ezart", instead got: "elezart"
Ah, I see. I misread the output. Thank you.
Not an issue, the first value is what your function returned, not the input value, for the first one, the input was
"foobar99"
. If you want to see the input value, print it, it'll appear above the test result.I'm solving on Python. The logic I'm seeing in the tests seems to me internally inconsistent. Examples:
I'm also seeing:
Thanks
This comment is hidden because it contains spoiler information about the solution
Hi, just let you guys know: Don't forget this extra examples:
"ca9t0457"
"ca9t0999"
"ca9t9999"
also these:
"00456"
"ca9t"
""