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.
That kata allows use of strings and lists, this one doesn't (Woops, didn't notice this is from 3 years ago, it probably didn't require that back then)
Default method signature for Python was:
def reverse()
with the missing argument(n)
.Please fix this!
I think the new runner with the new scope handling broke the kata, because
str()
(redefined inside the fixture) works normally, so even that trash anticheat doesn't work anymore.No problem with gessing why strings and (and rather then or) lists are denied.
List of denied method (e.g str()) is good idea.
I like this kata.
The description of the problem is not complete.
Could have added example inputs and outputs, limits/constraints of inputs to be expected etc..
Duplicate of https://www.codewars.com/kata/reverse-a-number
No response in a week, closing this issue.
Hard to answer without a look at your code.
Why the hell I pass all the test except this one: "65432100000000000000000 should equal 654321"
Why is this happening?
My code returs 123456, which is correct.
This comment is hidden because it contains spoiler information about the solution
str
disabled; ) )
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It's needed:
But it's rather nice kata, I've enjoyed it!