The TransCompilator

Solved LeetCode program · 947 of 1,000

#1313 · Decompress Run-Length Encoded List

Easy Array chunk-19.md

Original English source

The numbers is a list of 1, 2, 3, and 4.
For every pair from 0 to 1.
The times is item (pair times 2) of numbers. The value is item (pair times 2 plus 1) of numbers. For every copy from 0 to times minus 1, Show value.

Open in Playground Browse all 1,000 problems

Expected stdout

2
4
4
4