my sol : https://ide.codingblocks.com/s/240592
ques : https://hack.codingblocks.com/app/contests/1463/700/problem
1 tc is showing MLE !!!
i am not able to understand where my code is going wrong and what is MLE ?!
my sol : https://ide.codingblocks.com/s/240592
ques : https://hack.codingblocks.com/app/contests/1463/700/problem
1 tc is showing MLE !!!
i am not able to understand where my code is going wrong and what is MLE ?!
You need to pass the vector by reference rather than value in the recursive function. It creates numerous copies in recursive function.
MLE stands for memory limit exceeded and it is caused when you use more memory than the specified memory limit.