1663. Smallest String With A Given Numeric Value
Medium
Input: n = 3, k = 27
Output: "aay"
Explanation: The numeric value of the string is 1 + 1 + 25 = 27, and it is the smallest string with such a value and length equal to 3.Input: n = 5, k = 73
Output: "aaszz"Last updated