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.
Scala translation
I receive ValueError: max() arg is an empty sequence. So then after applying a default = 0 into the max(variable, default = 0), I receive a KeyError: 0. This is in Python 3.10, and I do not know how to solve this. I have tried using try, except blocks to no avail. Any suggestions?
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/163.
Please join the discussion to help us identify duplicate kata and retire them.
Duplicates are still not checked in some language versions (e.g Ruby).
Also the non-array tests are significantly insufficient.