solution.py
⌘↵ runLoading...
Valid Parentheses
easyYou've got this! Start small, think out loud.
Given a string containing just the characters `(`, `)`, `{`, `}`, `[`, `]`, determine if the input string is valid. Open brackets must be closed by the same type and in the correct order.
Time:O(n)
Space:O(n)
stackstringgoogle-favorite
OUTPUT
Run your code to see output