/spiralize-kata

Coding challenge using array mapping and booleans to make a spiral.

Primary LanguageTypeScript

spiralize-kata

Link: https://www.codewars.com/kata/534e01fbbb17187c7e0000c6/javascript

Your task, is to create a NxN spiral with a given size.

Return value should contain array of arrays, of 0 and 1

Because of the edge-cases for tiny spirals, the size will be at least 5.

General rule-of-a-thumb is, that the snake made with '1' cannot touch to itself.