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 ...
一些您可能无法访问的结果已被隐去。
显示无法访问的结果