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.
Hello! First of all, thanks for great kata! I had strange problem solving it - right now I passed all simple tests, and only few more when trying to submit kata. So I console loged some lawns and zombies arrays from fixed test that I failed, to try to debug code with this input in dev tools step by step and find mistates. But in dev tools console I get right, expected results! I tried a few more fixed tests inputs and it's the same - in console I got right answers, but codewars test show me another, wrong results with same, fixed input. If you gone through similar probles in past, I would really like you to share the decision. I don't really know how it's possible.
I had recursion and replaced it with while loop, tried different available nodes versions, didn't help.
UPD: done. I sorted array of zombies, and that wasn't necessary, so I deleted that part and code work now. But still I don't get how it got different results in console and codwars...