Hello CodeForces ,, this Problem in SPOJ (EDIST) I've solved it using dynamic programming "Recursion Method" but actually it gives me RTE in Java
The same algorithm Using C++ syntax gives me Accepted
Can You Please Explain How is That Happens? and How to Avoid Such Problem if it Face me in Future ?