← Back
00:00

Balanced Parentheses

LinkedIn interview questions · Easy · Coding round · 6 tests

Before a change ships, LinkedIn runs a validator over its configuration files (written in JSON, YAML, HOCON, and similar formats) to confirm that their parentheses balance.

Implement a function that reports whether every ( and ) in the input string pairs up correctly. All characters other than parentheses are skipped.

Idle