Error:stack termination. how to fix this error?
Hey @Nidhi_Alipuria
Your code had some structural issues. I’ve made some changes to the code. You’ll find it easier to implement and understand as well. Try to use this format for future codes as well.
https://ide.codingblocks.com/s/177460 : i have tried this code but still it is not passing the test cases