def test_gen_strobomatic(self): self.assertEqual(['88', '11', '96', '69'], gen_strobogrammatic(2))
def test_gen_strobomatic(self): self.assertEqual(["88", "11", "96", "69"], gen_strobogrammatic(2))
""" A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Find all strobogrammatic numbers that are of length = n. For example, Given n = 2, return ["11","69","88","96"]. """ from algorithms.maths import gen_strobogrammatic print(gen_strobogrammatic(2))