package leetcode;

/**
 * https://leetcode.com/problems/smallest-string-with-a-given-numeric-value/
 */
public class Problem1663 {
    public String getSmallestString(int n, int k) {
        char[] chars = new char[n];
        for (int i = chars.length - 1, j = 0; i >= 0; i--, j--) {
            // TODO
        }
        return new String(chars);
    }

    public static void main(String[] args) {
        Problem1663 prob = new Problem1663();
        System.out.println(prob.getSmallestString(3, 27)); // "aay"
        System.out.println(prob.getSmallestString(5, 73)); // "aaszz"
        System.out.println(prob.getSmallestString(27, 43)); // "aaaaaaaaaaaaaaaaaaaaaaaaaaq"
        System.out.println(prob.getSmallestString(28, 43)); // "aaaaaaaaaaaaaaaaaaaaaaaaaap"
    }
}

@@ -253,15 +253,8 @@
  - 1
-, j = 0
 ; i 
@@ -266,13 +266,8 @@
  i--
-, j--
 ) %7B%0A
@@ -566,16 +566,85 @@
 %22aaszz%22%0A
+        System.out.println(prob.getSmallestString(4, 47)); // %22aasz%22%0A
         
@@ -818,17 +818,207 @@
 aaaaaaaa
-p
+ap%22%0A        System.out.println(prob.getSmallestString(28, 143)); // %22aaaaaaaaaaaaaaaaaaaaaaapzzzz%22%0A        System.out.println(prob.getSmallestString(28, 53)); // %22aaaaaaaaaaaaaaaaaaaaaaaaaaaz
 %22%0A    %7D%0A

Update problem 1663