394. Decode String
·
Algorithm
Decode String - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 1. Stack과 Dict을 이용한 풀이 from collections import deque class Solution: def decodeString(self, s: str) -> str: list1 = deque(list(s)) stack = [] dict1 = {} dict_key = 65 while list1: cur = list1.popleft() if cur != "]": s..