856. Score of Parentheses——string

class Solution(object): def repeatedNTimes(self, S): num = 0 tmp = S[0] a = [] for i in range(len(S)): if S[i] == "(": tmp = "("
相關文章
相關標籤/搜索