def test_count(self): self.assertEqual(count([1, 2, 3], 4), 4) self.assertEqual(count([2, 5, 3, 6], 10), 5)
from algorithms.dp import count N = 4 S = [1, 2, 3] print(count(S, N)) N = 10 S = [2, 5, 3, 6] print(count(S, N))