예제 #1
0
 def test2(self):
     self.assertEqual(
         15, max_double_slice.solution([3, -2, 6, -1, 4, 5, -1, 2]))
예제 #2
0
 def test4(self):
     self.assertEqual(
         0, max_double_slice.solution([-4, -5, -1, -5, -7, -19, -11]))
예제 #3
0
 def test3(self):
     self.assertEqual(1, max_double_slice.solution([5, 0, 1, 0, 5]))
예제 #4
0
 def test3(self):
     self.assertEqual(10, max_double_slice.solution([0, 10, -5, -2, 0]))
예제 #5
0
 def testIncomplete(self):
     self.assertEqual(17, max_double_slice.solution([5, 17, 0, 3]))