loading...

re: Challenge - Print Spiral VIEW POST

TOP OF THREAD FULL DISCUSSION
re: It does not have to be a purely math problem on Level 2. I implemented this recursive approach which prepends and appends to lines of smaller spir...
 

Recursion was the way to go for me, too, because of the recursive structure of spirals. Really nice to see your recursive solutions! :)

I shared your view about how collecting data on the call stack is analogous to building a data structure regarding space complexity, and came to your conclusion to use tail recursion.

Code of Conduct Report abuse