Example #1
0
 def test_08(self):
     # Large Case
     k = 6
     L = 4
     n = 3
     expect = 1094
     result = quiz.count_straights(k, L, n)
     self.assertEqual(expect, result)
Example #2
0
 def test_06(self):
     # Medium Test 2
     k = 4
     L = 3
     n = 4
     expect = 33
     result = quiz.count_straights(k, L, n)
     self.assertEqual(expect, result)
Example #3
0
 def test_07(self):
     # No Valid Hands
     k = 5
     L = 2
     n = 5
     expect = False
     result = quiz.count_straights(k, L, n)
     self.assertEqual(expect, result)
Example #4
0
 def test_05(self):
     # Medium Test 1
     k = 3
     L = 3
     n = 3
     expect = 28
     result = quiz.count_straights(k, L, n)
     self.assertEqual(expect, result)
Example #5
0
 def test_04(self):
     # Example 2 from problem descripton
     k = 3
     L = 5
     n = 2
     expect = 205
     result = quiz.count_straights(k, L, n)
     self.assertEqual(expect, result)
Example #6
0
 def test_03(self):
     # Example 1 from problem descripton
     k = 2
     L = 3
     n = 4
     expect = 5
     result = quiz.count_straights(k, L, n)
     self.assertEqual(expect, result)
Example #7
0
 def test_02(self):
     # Single Label
     k = 1
     L = 13
     n = 5
     expect = 1287
     result = quiz.count_straights(k, L, n)
     self.assertEqual(expect, result)
Example #8
0
 def test_01(self):
     # Base case
     k = 1
     L = 1
     n = 1
     expect = 1
     result = quiz.count_straights(k, L, n)
     self.assertEqual(expect, result)