re: Challenge - Print Spiral VIEW POST


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


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?

Code of Conduct Report abuse