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.
Нужно добавить проверку на то что если input не array в самом начале, тогда если функция получает не массив то возвращает пустой массив.
И дальше если нет еще, условия на 0, если элемент массива равен 0. В целом загвоздка для меня была только в первом условии, что было не прописано, что делать если функция получает не массив.
/////
It is necessary to add a check about what if input is not an array at the very beginning, then if the function does not receive an array, it returns an empty array. And then, a condition for 0, if the array element is 0 what you want function to do.
In general, the only snag for me was in the first condition, what to do if the function does not receive an array.
Попробуйте внимательней посмотреть на формулировку задачи, возможно, вам поможет переводчик!
We would have to see at least one example of such solution whic "is correct, but does not work". Otherwise we do not even know what to fix.
I am going to close this issue as invalid, with insufficient amount of details. If you still think that something needs to be fixed then create a new issue, in English, with code which you think is correct and should pass but does not, and possibly some explanation why you think that the code should pass and why tests are wrong.