3 ms·
Why does running the simulation with N>6 cause a stack overflow? In this naive implementation, the deepest the recursion stack can be is N^2 cells, which for (e
by phasmantistes 10y ago
Why does running the simulation with N>6 cause a stack overflow? In this naive implementation, the deepest the recursion stack can be is N^2 cells, which for (e.g.) 7 is only 49 cells deep. That shouldn't be enough to cause a stack overflow, even in a js interpreter like this.