Skip to content

Commit c0dafc8

Browse files
committed
Added Prompt for Valid Parenthesis - Easy
1 parent 3cff36b commit c0dafc8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Easy/03_26_2020_valid_parentheses.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* Prompt: Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
3+
An input string is valid if:
4+
1. Open brackets must be closed by the same type of brackets.
5+
2. Open brackets must be closed in the correct order.
6+
*/
7+
18
class Solution {
29
public boolean isValid(String s) {
310

0 commit comments

Comments
 (0)