Ad
  • Custom User Avatar

    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...