<filename>Easy/1313 Decompress Run-Length Encoded List.py
# https://leetcode.com/problems/decompress-run-length-encoded-list/


class Solution:
    def decompressRLElist(self, nums: List[int]) -> List[int]:
        
        res = []
        
        for i in range(0, len(nums), 2):
            res.extend([nums[i+1]]*nums[i])
            
        return res
        

<filename>Easy/1313 Decompress Run-Length Encoded List.py
# https://leetcode.com/problems/decompress-run-length-encoded-list/


class Solution:
    def decompressRLElist(self, nums: List[int]) -> List[int]:
        
        res = []
        
        for i in range(0, len(nums), 2):
            res.extend([nums[i+1]]*nums[i])
            
        return res
        

# https://leetcode.com/problems/decompress-run-length-encoded-list/