Asterisk spiral – codegolf.stackexchange.com

Given the radius of size S and the step N, output the “square” S*S spiral having N asterisks, built from the outer to inner radius clockwise.

Test cases (examples) below.
Input: 4 3

Output:

***

For Get Answer – Click here

Leave a Reply

Your email address will not be published. Required fields are marked *