jianglilili / jianglilili/leetcode-

Valid Parentheses(有效的括号)

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

[有效的括号](https://leetcode-cn.com/problems/valid-parentheses/)

```
//time:2019/12/16
class Solution {
private Map map;
public Solution()
{
this.map=new HashMap();
this.map.put(')','(');
this.map.put('}','{');
this.map.put(']','[');
}
public boolean isValid(String s) {
// Map map=new HashMap();
// map.put(')','(');
// map.put('}','{');
// map.put(']','[');
Stack stack=new Stack();
for(int i=0;i

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.