Skip to content

Takes an n*m array as input and returns a "spiral" path through the array

License

Notifications You must be signed in to change notification settings

patgarcia/spiral-array-peeler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

spiral-array-peeler

Function that takes an n*m array as input and returns a "spiral" path through the array, starting in the upper-left corner and moving clockwise.

example: input = [ [1, 2, 3], [8, 9, 4], [7, 6, 5] ] output = [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ]

About

Takes an n*m array as input and returns a "spiral" path through the array

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published