DataWhale:leetcode Day5

一、leetcode地址 https://leetcode.com/problems/valid-parentheses/ 二、问题描述 三、代码实现 语言:Python3 代码: class Solution: def isValid(self, s: str) -> bool: stack = [] mapping = {')':'(',']':'[',
相关文章
相关标签/搜索