The Decompress Run-Length Encoded List interview question is a straightforward array manipulation task. You are given an array nums where elements come in pairs: [freq, val]. For every pair, you need to generate freq occurrences of the value val and concatenate them into a single result array. This Decompress Run-Length Encoded List coding problem is a test of basic loop control and list building.
Google and Amazon use this "Easy" level question to check for basic programming literacy. It evaluates if a candidate can handle simple indexing (iterating in steps of 2) and if they know how to efficiently extend or append to a dynamic array in their language of choice. It’s a common "warm-up" task to get the candidate comfortable.
This follows the Array interview pattern.
Input: [1, 2, 3, 4]
Even for simple problems, mention performance. For example, explain that while list.add() is fine, pre-calculating the final array size avoids redundant memory reallocations as the list grows.