NNetlify·DSAEngineerTechnical Phone Screen
Valid Parentheses
Problem
Validate nested brackets with a stack.
Example
"([{}])" -> true; "([)]" -> false
Constraints
- 1 ≤ |s| ≤ 10^4
Approach
Stack push/pop matching.
added 6 days ago
Validate nested brackets with a stack.
"([{}])" -> true; "([)]" -> false
Stack push/pop matching.