All questions

Intermediate · JavaScript · Stacks

Validate balanced brackets

Commonly asked: Very common in service and product companies · ~10 min

Write isBalanced(s) returning true if every (), [] and {} is closed in the right order. Ignore other characters.

Checking your membership…