Valid Parentheses

Asked at C3.ai · Coding Questions · Difficulty: Easy · Last asked Jul 15, 2026

Given a string containing just the characters `'('`, `')'`, `'{'`, `'}'`, `'['` and `']'`, determine if the input string is valid.

Loading the problem…