Cloze

StackEasy

Valid Parentheses

Say whether every bracket in s is closed by the right kind, in the right order.

Aim for O(n) time, O(n) spaceInspired by a classic interview problem ↗