h*****n 发帖数: 439 | 1 You need to set the stack size of Java virtual machine, not that of Windows.
type "java -X" too see help.
it's likely you should use "java -Xss".
but I doubt that your algorithm is not very efficient, it's better to check
it.
When
to | h*****n 发帖数: 439 | 2 but I really doubt any algorithm that use such a huge size of stack.
It's more proper to use heap in such cases. stack is not supposed to
be used like that.
If you do need to recursive so many time, you'd better transfer it
into a for-loop form. In such cases, resursive function calls have
too huge overhead. Transfer it, if you can.
tried
Windows.
check |
|