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.
OP solved it, closing. Also description has been updated
So, your example above should return
-54,-53
and-68--66
respectively.This comment is hidden because it contains spoiler information about the solution
Please use markdown tags to format your code or it's unusable, see there: https://docs.codewars.com/training/troubleshooting/#post-discourse
Negative values in this kata might look strange after formatting, but they don't really need any special handling. You process negative values exactly the same way as positive ones.
You can show your code so maybe we could find your problem and help you.
Please only mark issue for kata issues.
arr[len(arr)]
is out of range since indexing starts at 0.Also, you can use markdown to format your code.