getting TLE in one test case
Subset sum target problem
Instead of returning a boolean value, return an integer because the type of your dp array is int.
Here is your corrected code. Please check it.
Now its giving TLE in two test cases
Surprisingly, its giving TLE when I’m solving it from the course section. Whe I solved it on hackerblocks, all test cases passed… probably some issue with the system.
Oh Okay. I will get this issue checked. Meanwhile, you can mark your doubt as resolved now.
