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
This comment is hidden because it contains spoiler information about the solution
Can you explain, please? I wrote the same code..
i'm a beginer and i don't understand why this code is horrible...
HORRIBLE CODE
Check out mine solution, i've fixed this cheating with the edge cases.
Top solutions require python 2.x.
I've had the same issue.
Check out my solution, it's almost the same, but works fine for all the edge cases.
Why iterate the list?
For example: what if there is 3.25 in tests? My solution is the same, but I think it is pretty cheating and should not be allowed. Hovewer top solutions for this kata does not work now also.
Well, seems like a bit of a cheat but alright
Thx a lot
Because the kata got retired, so you can't submit a solution anymore, though you can freely look at others' solutions now.
Hi,
I have solved it.
It says
'Time: 646ms Passed: 50 Failed: 0'
and
'Great! You may take your time to refactor/comment your solution. Submit when ready.'
However I still see 'attempt' button and 'submit' is not active so I could not submit it.
I had not such a problem until now on this site...
Thx
Resolved.
Thanks for the notification, this means my code is wrong. Dm me on one of the Gitter channels. https://gitter.im/Codewars/codewars.com/kata-solving-help# I'm listed as ALowVerus
Hi,
I had a solution and it got "You have passed all of the tests! :) ". Although, when I pushed 'attempt' it said
'''...Exception("The baseline algorithm found a result with {} total fun, LESS than your proposed {} fun. This should NEVER happen. Please contact the test administrator, something is wrong with the tests.".format(base_fun, proposed_fun))
Exception: The baseline algorithm found a result with [3, 4, 4, 5, 0, 3] total fun, LESS than your proposed [5, 3, 4, 5] fun. This should NEVER happen. Please contact the test administrator, something is wrong with the tests.'''
Shell I send my code to you somehow or public here? Sorry, I am completely new...
Thx