n1n1_4
1
Hii
I wrote two solutions one in c++ and one in JAVA Of DISHOWN
All variable names are same ,function names are same ,everything is same
Got AC in C++ but in JAVA getting NZEC error :(. PLz can anyone tell me Why is it so even though both programs are exactly same
C++ solution : http://www.codechef.com/viewsolution/4335936
JAVA solution : http://www.codechef.com/viewsolution/4335995
1 Like
@n1n1_4 : Are you using recursion in your logic . In Java stack space will exhaust soon and throw âStackOverFlow exceptionâ .
3 Likes
n1n1_4
3
@vineetpaliwal thanks i didnât know this. I was using recursion in java. I appreciate you help. :):)
This answer
3
@n1n1_4 : Are you using recursion in your logic . In Java stack space will exhaust soon and throw âStackOverFlow exceptionâ .
should be in the community wiki. Thanks Vineetpaliwal, you saved my day