I am trying to implement some code to calculate Stirling numbers.
The code shown below provides the correct calculation but throws
a Segmentation fault: 11 once it is done running. I suspect there
is something with the way I am setting up the multidimensional
array.
import std.stdio;
impor
On Sunday, 8 April 2018 at 16:51:14 UTC, ag0aep6g wrote:
On 04/08/2018 06:15 PM, popgen wrote:
[...]
[...]
[...]
[...]
[...]
Should it be `q <= k` here? You're using q as an index into an
array of length k + 1. If you go up to i, you'll exceed that
and go out of bounds.
That you're s