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.
Hi Terranovafel, Welcome to Codewars!
Looking at your attempted solution, you basically have the right approach.
However, note that the input object is passed as an argument to a function (named
total_bytes
in this kata) and you should return the result from there.You can also read here on how to write a solution: https://docs.codewars.com/training/training-example#writing-a-solution
Initial setup: