[Python3] Runtime: 24 ms, faster than 99.60% | Memory: 14.8 MB, less than 95.18%
\nclass Solution:\n    def getSmallestString(self, n: int, k: int) -> str:\n        diff = k - n\n        q = diff // 25\n        r = diff % 25\n        ans = "
```\nclass Solution:\n    def getSmallestString(self, n: int, k: int) -> str:\n        diff = k - n\n        q = diff // 25\n        r = diff % 25\n        ans = "a"*(n-q-1) + chr(97+r) + "z"*qt if r else "a"*(n-q)+ "z"*q\n        return ans\n```
['Math', 'Greedy', 'Python']