Deviopath › Go

Balanced Parentheses

Medium · Strings

Return whether s is a balanced string of (), [], and {}. Every closer must match the latest unmatched opener.

Write Balanced(s).

Next: Increment in Place