I have a question about the current java version.
I'm using 1.6.0_17, which appears to have a recursive stack-depth of ~13-14k.
Unsurprisingly, the following code :
public class Main {
public static void main (String [] arg) {
recurse(10000);
}
public static boolean recurse(int L) {
return (L < 0) ? true : recurse(L-1);
}
}
Runs without error on my machine.
However on SPOJ this code appears to throw a stack overflow error.
Indeed, in a somewhat bizarre turn of events, several of my solutions which still show up as AC are now RE when resubmitted.
So my question is, what is the new stack depth for the java version used in the judge? And why was it changed?