package leetcode;

/**
 * https://leetcode.com/problems/decompress-run-length-encoded-list/
 */
public class Problem1313 {
    public int[] decompressRLElist(int[] nums) {
        // TODO
        return null;
    }

    public static void main(String[] args) {
        Problem1313 prob = new Problem1313();
    }
}

@@ -12,16 +12,68 @@
 tcode;%0A%0A
+import java.util.ArrayList;%0Aimport java.util.List;%0A%0A
 /**%0A * h
@@ -229,133 +229,455 @@
     
-// TODO%0A        return null;%0A
+List%3CInteger%3E decompresssed = new ArrayList%3C%3E();%0A        for (int i = 0; i %3C nums.length; i += 2) %7B%0A  
     
-%7D%0A%0A
+  
     
-public static void main(String%5B%5D args) %7B%0A        Problem1313 prob = new Problem1313()
+int a = nums%5Bi%5D;%0A            int b = nums%5Bi + 1%5D;%0A            for (int j = 0; j %3C a; j++) %7B%0A                decompresssed.add(b);%0A            %7D%0A        %7D%0A        int%5B%5D answer = new int%5Bdecompresssed.size()%5D;%0A        for (int i = 0; i %3C answer.length; i++) %7B%0A            answer%5Bi%5D = decompresssed.get(i);%0A        %7D%0A        return answer
 ;%0A  

Solve problem 1313