Can someone identify what is causing all test cases to return 'No' in my implementation of the subset sum problem?
def isSubls(l, n, s):
if s == 0:
return 'Yes'
if n == 0 and s != 0:
return False
if l[n - 1] > s:
return isSubls(l, n - 1, s)
return isSubls(l, n-1, s) or isSubls(l, n-1, s-l[n-1])
def run():
for _ in range(int(input())):
n, m = map(int, input().split())
l = []
for i in range(n):
l.append(int(input()))
print(isSubls(l, n, m))
run()