Esempio n. 1
0
 def test_count(self):
     self.assertEqual(count([1, 2, 3], 4), 4)
     self.assertEqual(count([2, 5, 3, 6], 10), 5)
Esempio n. 2
0
 def test_count(self):
     self.assertEqual(count([1, 2, 3], 4), 4)
     self.assertEqual(count([2, 5, 3, 6], 10), 5)
Esempio n. 3
0
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))