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.
makes no difference unfortunately.
I don't know if it's the cause of everything, but you should not round intermediate results.
This comment is hidden because it contains spoiler information about the solution
Please format your code or it's unusable, see there: https://docs.codewars.com/training/troubleshooting/#post-discourse
This comment is hidden because it contains spoiler information about the solution
thanks! at least once a day i find something in my code that i can write i less than half of the statements, haha!
Your algorithm is correct but your function is modifying the input arrays in place which is bad practice. As long as a function causes side effects when it is invoked, its behavior is undefined which means that you cannot guarantee that your function will produce consistent results every time. Consider computing the sums and cubes of the numbers as you are summing up the results instead of reassigning each value in the array before performing the summation, cheers :)
This comment is hidden because it contains spoiler information about the solution