2dbi
Home/GitHub/Valid Parentheses / Stack Problem
GGitHub·DSASWE-2Technical Phone Screen

Valid Parentheses / Stack Problem

Problem

Validate nested brackets using a stack.

Example

"([{}])" -> true; "([)]" -> false

Constraints

  • 1 ≤ |s| ≤ 10^4

Approach

Stack push/pop matching. GitHub coding rounds are LC easy-to-medium with strong communication weight.

added 6 days ago
LeadersAccount