Skip to content

Instantly share code, notes, and snippets.

import sys
def solve_case_recursive(expected_count, numbers_str_list, index, current_sum):
if index >= len(numbers_str_list):
return current_sum
try:
y_n = int(numbers_str_list[index])
except ValueError:
y_n = 0
if y_n <= 0: