Perfect-sum-problem

https://practice.geeksforgeeks.org/problems/perfect-sum-problem/0

plz correct the code it shows wrong ans on submission on gfg
explain the changes made into my code as well…

@S19LPPP0202 take mod while returning the answer!
rest all seems fine.

yeah thanks plz solve my other problem count no of palindromic substrings in which u have replied…

Sure @S19LPPP0202 See my reply there.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.