A testcase seems wrong ! The particular testcase (234 / 661 which was submitted at Nov 27, 2025 13:40) that comes wrong expects an output of 4 with subarray being [1,2,4,-3] which is a size of 4 ...
However, the hidden test cases never include worst-case inputs that force exponential recursion. As a result, DFS subset-sum solutions without memoization are accepted, even though they should TLE or ...