You've specified n, but how do your permutations grow? Is it really (60!), which is 8.3209871e+81, which is definitely not going to fit in memory? Or is it something else?
Basically, as n gets...
Type: Posts; User: KevinWorkman
You've specified n, but how do your permutations grow? Is it really (60!), which is 8.3209871e+81, which is definitely not going to fit in memory? Or is it something else?
Basically, as n gets...
How many permutations are you generating though? How large is each permutation?
I'm also asking whether you need to copy the data as many times as you do, since you mentioned copying arrays in...
Well, you're running out of memory. That's a different issue than trying to store a long in an int, and it probably won't be solved by increasing the initial capacity of your data structure- unless...
What is the actual error you're getting?
What happened when you tried increasing the initial size?