leetcode刷题day1

20. Valid Parentheses Problem of the Url:https://leetcode.com/problems/valid-parentheses/ Problem description: solution demo: 思路:根据问题要求,首先判断出s的长度为奇数,一定为False;若s的长度为偶数,则需要判断s是否满足题目要求,具体步骤如下:1)对于s中的每一个元
相关文章
相关标签/搜索