Skip to content

Code challenge

Valid Parentheses

Problem

Given a string `s` of '()[]{}', return true if every bracket is closed by the matching type in the correct order.
Editor · javascript4 lines · 44 chars
Back to topic
Valid Parentheses — Stacks & Queues · Aevrofy