Skip to content

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

Notifications You must be signed in to change notification settings

jonathan-messina/spiralize-kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published