题目:
代码:
class Solution:
def decompressRLElist(self, nums: List[int]) -> List[int]:
arr=[]
for i in range(1,len(nums),2):
for j in range(nums[i-1]):
arr.append(nums[i])
return arr
2022-02-06 10:46:59
题目:
代码:
class Solution:
def decompressRLElist(self, nums: List[int]) -> List[int]:
arr=[]
for i in range(1,len(nums),2):
for j in range(nums[i-1]):
arr.append(nums[i])
return arr
下一篇:Python变量