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 : CodeChef: Practical coding for everyone
JAVA solution : CodeChef: Practical coding for everyone
1 Like
@n1n1_4 : Are you using recursion in your logic . In Java stack space will exhaust soon and throw âStackOverFlow exceptionâ .
3 Likes
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
n1n1_4
5
@vineetpaliwal thanks i didnât know this. I was using recursion in java. I appreciate you help. :):)