package leetcode;

/**
 * https://leetcode.com/problems/decoded-string-at-index/
 */
public class Problem880 {
    public String decodeAtIndex(String S, int K) {
        // TODO
        return null;
    }

    public static void main(String[] args) {
        Problem880 prob = new Problem880();
        System.out.println(prob.decodeAtIndex("leet2code3", 10)); // o
        System.out.println(prob.decodeAtIndex("ha22", 5)); // h
        System.out.println(prob.decodeAtIndex("a2345678999999999999999", 1)); // a
    }
}

package leetcode;

/**
 * https://leetcode.com/problems/decoded-string-at-index/
 */
public class Problem880 {
    public String decodeAtIndex(String S, int K) {
        // TODO
        return null;
    }

    public static void main(String[] args) {
        Problem880 prob = new Problem880();
        System.out.println(prob.decodeAtIndex("leet2code3", 10)); // o
        System.out.println(prob.decodeAtIndex("ha22", 5)); // h
        System.out.println(prob.decodeAtIndex("a2345678999999999999999", 1)); // a
        System.out.println(prob.decodeAtIndex("hello23", 10)); // o
    }
}

Update problem 880