Ejemplo n.º 1
0
 def test_hailstone(self):
     self.assertEqual([8, 4, 2, 1], hailstone.hailstone(8))
     self.assertEqual([10, 5, 16, 8, 4, 2, 1], hailstone.hailstone(10))
Ejemplo n.º 2
0
 def test_hailstone(self):
     self.assertEqual([8, 4, 2, 1], hailstone.hailstone(8))
     self.assertEqual([10, 5, 16, 8, 4, 2, 1], hailstone.hailstone(10))
Ejemplo n.º 3
0
from algorithms.maths.hailstone import hailstone

print(hailstone(10))