← Microsoft questions
CodingReported in a candidate post, Feb 2026

Validate parentheses and generate all valid parentheses

Filed under Microsoft

Solve two related problems. Part 1 (Valid Parentheses): Given a string s containing only the characters '(', ')', '{', '}', '[' and ']', determine whether the input string is valid. A string is valid…

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 Microsoft questions

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