Epic interview question

Spiral array question, assumedly using a 2D array.

Interview Answer

Anonymous

16 Oct 2015

Set up an algorithm with a buffer, beginning at 0, that loops through each side and then increase the buffer to go to the inner square.