Parentheses Interview Questions
5 interview questions in our bank cover Parentheses, most of them Coding Questions. They average 3.0/5 difficulty — medium — and each one was reported by a candidate after a real interview. Companies known to ask about Parentheses: Bloomberg, Lenovo, BNP Paribas, C3.ai, Visa.
Practice these on the problems board →Companies that ask about Parentheses
Question mix
- Coding Questions5
Difficulty
- 2/5 — easy1
- 3/5 — medium3
- 4/5 — hard1
Questions tagged Parentheses
Remove Invalid Parentheses (Minimum Removal, Return All Valid Strings)
3/5Remove as few brackets as possible so that a string becomes balanced, and return every distinct result achieving that minimum. This Bloomberg question is where breadth-first search beats backtracking: exploring one removal at a time level by level means the first level with any valid string holds all of them. You will deduplicate aggressively, validate in a single pass, and leave non-bracket characters alone. The complete problem and the reference solution are available with a subscription.
Coding QuestionsBloombergValidate Non-Nesting Parentheses with Content Rules
3/5Encountered in Lenovo technical rounds, this coding challenge tests your string parsing and validation skills by requiring you to verify specific structural constraints on enclosing characters like brackets and parentheses. You must ensure proper closure, prohibit identical types from nesting within each other, and mandate that non-empty content exists inside every pair. Discover the full problem statement and optimal algorithmic solution with a subscription.
Coding QuestionsLenovoGood Binary Strings
4/5This BNP Paribas interview challenge requires examining specific characteristics of binary sequences based on balance and prefix constraints. Candidates are tested on their ability to manipulate strings and evaluate structural validity efficiently. The task evaluates foundational algorithmic thinking and combinatorial reasoning. Access to the complete problem breakdown and the optimized reference solution requires an active subscription.
Coding QuestionsBNP ParibasValid Parentheses
2/5Reported as a screening question from C3.ai, this fundamental parsing challenge asks you to verify whether a given string of mixed brackets is properly nested and closed in the correct order. It serves as a benchmark test for evaluating your proficiency with stack data structures and linear time validation logic. Perfecting this pattern is a crucial milestone for tackling more intricate syntax analysis and compilation tasks in future interviews. The full problem text and validated reference implementation are available to subscribers.
Coding QuestionsC3.aiMinimize Value by Parentheses in Concatenated Expression
3/5This Visa interview question challenges candidates to evaluate numeric strings and strategically place grouping symbols to achieve the smallest possible arithmetic result. The problem evaluates your ability to handle large numerical inputs and apply greedy or dynamic programming techniques for expression parsing. You will need to carefully consider operator precedence and string manipulation. To access the complete problem description and an optimized model solution, a paid subscription is required.
Coding QuestionsVisa
Studied alongside
Parentheses interview FAQ
- How many Parentheses interview questions are there?
- 5 reported questions, mostly Coding Questions.
- Which companies ask Parentheses questions?
- Bloomberg (1), Lenovo (1), BNP Paribas (1), C3.ai (1), Visa (1).
- How hard are Parentheses questions?
- They average 3.0 out of 5: 1 at 2/5, 3 at 3/5, 1 at 4/5.