用一个栈【python中可以用List】就可以解决,时间和空间复杂度都 ... elif c in SYMBOLS_R: # 右符号要么出栈,要么匹配失败 if arr and arr[-1] ...
確定! 回上一頁