Spiral Numbers in advance
First, I would like to say thanks to Mr. Swapnil Srivastava for his post of coding challenges of Spiral Number. This is the best challenge for us to enhance our coding skills. In this challenge, many coders solved the problem by using a 2D matrix to store numbers, then display the the matrix after computing and storing these numbers. Think about when you face to solve the challenge with a big size of spiral matrix, say about 10,000, it will take about a minute to compute and fifteen minutes to display the matrix if you using this algorithm. Additional, we will spend a lot of resources, especially RAM to compute and to store the numbers. So, my question is, how can we compute numbers and display it immediately? I mean, should we not use any iterators, but some variables, to resolve the problem? Thank you.