파이썬과 스위프트에서 for문을 i를 2씩 증가시키면서 돌릴 방법이 딱히 생각나지 않았다. while문으로 해결했고 스위프트는 배열의 곱셈이 안되서 for문으로 append 시켰다. 스위프트 class Solution { func decompressRLElist(_ nums: [Int]) -> [Int] { var i = 0 var a = [Int]() while i < nums.count{ for j in 0.. List[int]: a=[] i=0 while i