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.
I had the same issue then I realized I needed to add logic to give the additional points only to those with 5 or more courses. Also just make sure to add 0 points to grades other than ABCD. I was adding undefined to an integer.
Where did you get that last 20?
Read the info on that link please, you need to write
print(whatever_value_you_want_to_inspect)
. In this case,print(arr)
. And that works in both, you need to write it inside your functionfind_hack
, not in another function that doesn't get called in the tests.Print the input yourself to debug your code: https://docs.codewars.com/training/troubleshooting#print-input