carloscn / carloscn/structstudy

有效的括号(leetcode-20)valid-parentheses

Open
#35 2 comments 0 reactions 0 assignees View on GitHub
Level-easy 一般问题 字符串
Dominant language
C
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

给定一个只包括 '(',')','{','}','[',']' 的字符串 s ,判断字符串是否有效。

有效字符串需满足:

左括号必须用相同类型的右括号闭合。
左括号必须以正确的顺序闭合。
每个右括号都有一个对应的相同类型的左括号。
 

来源:力扣(LeetCode)
链接:https://leetcode.cn/problems/valid-parentheses

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.