Questions › Technical PM › Top-Interview
Write a function to balance parentheses in a given string by removing the fewest characters possible. Ensure that each opening parenthesis has a corresponding closing parenthesis and each pair is properly nested.
- Technical PM
- Top-Interview
- Easy
- 20 min
Write a function to balance parentheses in a given string by removing the fewest characters possible. Ensure that each opening parenthesis has a corresponding closing parenthesis and each pair is properly nested.
What this question tests
- Technical PM
- Structured problem solving
- Communication
- Trade-off reasoning
Practise this question under interview conditions. Answer it out loud against a timer with an AI interviewer that asks follow-ups, then review the scored report.
Related Technical PM questions
- Design an end-to-end batching system for LLM queries.Top-Interview · Technical PM · Easy
- Develop a strategy for OpenAI's fine-tuning capabilities using publicly available docs.Top-Interview · Technical PM · Easy
- What is DevOps?Top-Interview · Technical PM · Easy
- How would you position Cosmos?Top-Interview · Technical PM · Easy
- Have you worked with AI or generative AI products before?Top-Interview · Technical PM · Easy
- What products have you worked on that you launched or scaled?Top-Interview · Technical PM · Easy
All Technical PM questions · Product manager interview questions by skill area