dynamic_programming.sum_of_subset¶
Functions¶
|
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
|
>>> is_sum_subset([2, 4, 6, 8], 5)
False
>>> is_sum_subset([2, 4, 6, 8], 14)
True