Exemple #1
0
	def test_case_2(self):
		self.assertEqual(maxSubsetSumNoAdjacent([1]), 1)
Exemple #2
0
	def test_case_13(self):
		self.assertEqual(maxSubsetSumNoAdjacent([7, 10, 12, 7, 9, 14, 15, 16, 25, 20, 4]), 72)
Exemple #3
0
	def test_case_1(self):
		self.assertEqual(maxSubsetSumNoAdjacent([]), 0)
Exemple #4
0
	def test_case_11(self):
		self.assertEqual(maxSubsetSumNoAdjacent([30, 25, 50, 55, 100]), 180)
Exemple #5
0
	def test_case_12(self):
		self.assertEqual(maxSubsetSumNoAdjacent([30, 25, 50, 55, 100, 120]), 205)
Exemple #6
0
	def test_case_9(self):
		self.assertEqual(maxSubsetSumNoAdjacent([10, 5, 20, 25, 15, 5, 5, 15, 3, 15, 5, 5, 15]), 90)
Exemple #7
0
	def test_case_10(self):
		self.assertEqual(maxSubsetSumNoAdjacent([125, 210, 250, 120, 150, 300]), 675)
Exemple #8
0
	def test_case_7(self):
		self.assertEqual(maxSubsetSumNoAdjacent([4, 3, 5, 200, 5, 3]), 207)
Exemple #9
0
	def test_case_6(self):
		self.assertEqual(maxSubsetSumNoAdjacent([7, 10, 12, 7, 9, 14]), 33)
Exemple #10
0
	def test_case_5(self):
		self.assertEqual(maxSubsetSumNoAdjacent([1, 15, 3]), 15)
Exemple #11
0
	def test_case_4(self):
		self.assertEqual(maxSubsetSumNoAdjacent([1, 2, 3]), 4)
Exemple #12
0
	def test_case_3(self):
		self.assertEqual(maxSubsetSumNoAdjacent([1, 2]), 2)