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.
your solution is more efficient. Dont think less code is better code. Faster code is better code.
Read the label of the test your code is failing:
You can print the input too to help you debug your code. Reading this could help: https://docs.codewars.com/training/troubleshooting