【leetcode】394. Decode String

題目如下: 解題思路:這種題目和四則運算,去括號的題目很類似。解法也差不多。 代碼如下: class Solution(object): def decodeString(self, s): """ :type s: str :rtype: str """ stack = [] for i in
相關文章
相關標籤/搜索