Interview Coder drill
Interview Coder drill
Interview Coder drill
10:00
Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. Print 'true' or 'false'.
Example 1
Input: s = "()"
Output: true
Opening and closing brackets match
Example 2
Input: s = "()[]{}"
Output: true
All brackets match
Constraints
Capture your plan, then rate how clearly you recalled it before submitting.