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.
You can do that to check if you want, but the tests dont read from the console. The console is just for humans, the tests only care about what you return from your function.
You are supposed to return the array, not print it to the terminal
Hi, I don't use Kotlin but it looks like an error message due to empty input array - are you sure your code implements this:
"If the input is an empty array or is null, return an empty array."
correctly?