dynamic_programming.sum_of_subset

Functions

is_sum_subset(→ bool)

Module Contents

dynamic_programming.sum_of_subset.is_sum_subset(arr: list[int], required_sum: int) bool
>>> is_sum_subset([2, 4, 6, 8], 5)
False
>>> is_sum_subset([2, 4, 6, 8], 14)
True