CodeMosa

Master LeetCode Patterns

Back
Stack Simulation
Question 1 of 128% Complete
Easy
To check if parentheses are balanced, what's the stack-based approach?
Need a hint?
Think about matching pairs