Problem 20 · Easy

Valid Parentheses

Validate balanced parentheses using a stack to achieve O(n) time.

Open the interactive visualisation