Search
⌘K

Leetcode 1313. Decompress Run-Length Encoded List

Given an even-length array of [freq, val] pairs representing run-length encoding, return the decompressed list formed by repeating each val freq times and concatenating the results — a straightforward linear-time expansion.

Asked at:

Meta


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Early February, 2025

Meta

Staff

Comments

Your account is free and you can post anonymously if you choose.