← Snapdeal questions

Check valid parenthesis string

Filed under Snapdeal

Given a string containing only parentheses, determine if the string is valid. A string is valid if every opening parenthesis has a corresponding closing parenthesis in the correct order.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Snapdeal questions

Collected from public candidate posts and coding forums. Updated Nov 2026.