Valid Parentheses

Moyen · javascript · javascript · stacks

Write solution(str) that returns true if every (, [, { in the string is properly closed and nested, false otherwise.

Tests d'exemple

solution("([{}])") // => true

Soumettre

Classement