What is the stack size being used for running java programs in Spoj?
It seems that the default stack size is being used(128K). But the default stack size for C++ is 1MB. So some of the recursive solutions I wrote give an NZEC error in JAVA and the same solution gets accepted in C/C++. I am assuming that this is because of a stack overflow error.
To point to the problems specifically, one is WORDEQ and the other is CORNET.
CORNET got accepted when I changed to C.
WORDEQ got accepted when I wrote a non-recursive solution.
Can the admins please look into this problem and allocate the same stack size for JAVA programs as well?