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.
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/184.
Please join the discussion to help us identify duplicate kata and retire them.
This comment is hidden because it contains spoiler information about the solution
The basic test in Python should use fixed inputs instead of randomly generated one.
Kotlin Translation here -- Please review and approve
This being an interview question, that is more about the mentioned complexities than about solving the actual problem, wouldn't it be nice to ask for those complexities as well? As a string or as an actual function?