DEV Community

Discussion on: Challenge - Print Spiral

Collapse
 
lluismf profile image
Lluís Josep Martínez

The key is to find the mathematical formula between elements of row i and i-1.

Collapse
 
heikodudzus profile image
Heiko Dudzus

This is generally true. I'm not sure if this approach reflects the structure of the spiral so well that it leads easily to a solution. I may be wrong on that.

Are you developing code?