Category archives for interview

Technical Interview: Parenthesis Problem

Problem Statement: I recently went through an interview process, for a software engineer position, during which the interviewer asked me to solve the following problem: Given N parenthesis, write a program that outputs all the valid parenthesis combinations. Explanations: Of course, for N odd, the program should output some error message. For N=2, the program […]