Back to Cosmos

Validate Parentheses

code/languages/python/validate-parentheses/README.md

latest195 B
Original Source

Validate Parentheses

Summary

Give a string containing just the characters: ( ) [ ] { } and determine if the input string is valid

Example

([(){()}()]) --> Valid ({[(])}({})) --> Invalid