why i m getting NZEC here pls help…
https://www.codechef.com/viewsolution/15302743
In your recursive function, the very first element is less than m in array. So n=i assigns 0 to n. Then in next recursion you have m=m-arr[n-1], but n is 0 so your expression becomes m=m-arr[-1] which is wrong.