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.
Not necessary to convert to cArray to return str. The test can be done on str.length()
Wow! this is really really clever.
The expected value has 9 digits and your function returned a number with only 8 digits. Paste your code and mark your post as having spoiler content. I've passed it in Java with no problems.
Random test is failing for me in Java.
randomTests(SolutionTest)
expected:<-449970540> but was:<-73742809>
I've tried running my code with those values in an array and I correctly return the expected value, so there must be a problem with the random test.
@ THByt: warning, Anter69 is talking about using the edit panel of the kata directly, but I'm not sure you have enough honor to have access to this feature. If it's not the case, you'll have to fork your translation and submit a new one.
Yes, you can:
Further suggestions for python:
snake_case
for the function name, just make sure you keep compatibility with the older solutions, putting these lines at the top of the test block:random.randint
for generating random integersrandint(-100, 1000)
)Cheers
I'm not sure if I am allowed to edit the translation after it has been approved, but if I can, how?
Hi THByt. Please review your translation and take care of the issue above.
cheers,
B4B
see my issue just below (first point)
This comment is hidden because it contains spoiler information about the solution