コード例 #1
0
ファイル: Test.py プロジェクト: CodeInDna/Algo_with_Python
 def test_case_14(self):
     self.assertEqual(
         minNumberOfJumps(
             [3, 12, 2, 1, 2, 3, 15, 1, 1, 1, 3, 2, 3, 2, 1, 1, 1, 1]), 3)
コード例 #2
0
ファイル: Test.py プロジェクト: CodeInDna/Algo_with_Python
 def test_case_2(self):
     self.assertEqual(minNumberOfJumps([1, 1]), 1)
コード例 #3
0
ファイル: Test.py プロジェクト: CodeInDna/Algo_with_Python
 def test_case_1(self):
     self.assertEqual(minNumberOfJumps([1]), 0)
コード例 #4
0
ファイル: Test.py プロジェクト: CodeInDna/Algo_with_Python
 def test_case_12(self):
     self.assertEqual(
         minNumberOfJumps(
             [3, 10, 2, 1, 2, 3, 7, 1, 1, 1, 3, 2, 3, 2, 1, 1, 1, 1]), 6)
コード例 #5
0
ファイル: Test.py プロジェクト: CodeInDna/Algo_with_Python
 def test_case_11(self):
     self.assertEqual(
         minNumberOfJumps(
             [3, 4, 2, 1, 2, 3, 7, 1, 1, 1, 3, 2, 3, 2, 1, 1, 1, 1]), 7)
コード例 #6
0
ファイル: Test.py プロジェクト: CodeInDna/Algo_with_Python
 def test_case_8(self):
     self.assertEqual(minNumberOfJumps([2, 1, 2, 2, 1, 1, 1]), 4)
コード例 #7
0
ファイル: Test.py プロジェクト: CodeInDna/Algo_with_Python
 def test_case_6(self):
     self.assertEqual(minNumberOfJumps([2, 1, 2, 3, 1]), 2)