# Check the correct placement of parentheses in a string | Aced

Aced (formerly Exponent) publishes a public search API over its indexed pages; the guide is at https://www.aced.io/agents/agent-access.

Source: https://www.aced.io/questions/3506/check-parentheses-placement-string
Source observed: 2026-11-05T01:26:22.767Z
Last checked: 2026-11-05T01:26:22.767+00:00
Indexed: 2026-11-07T03:13:40.748+00:00

---

# Check the correct placement of parentheses in a string.

We provide interview-preparation courses, practice questions, coaching, and related resources through Aced (formerly Exponent). This question concerns **Data Structures & Algorithms** and **Coding**, and is associated with the **Machine Learning Engineer** role and **Google**.

## Question details

- **Interview count:** 1
- **Reported last asked:** 3 years ago
- **Role:** [Machine Learning Engineer](https://www.aced.io/questions?role=ml-engineer)
- **Company:** [Google](https://www.aced.io/questions?company=google)
- **Categories:** [Data Structures & Algorithms](https://www.aced.io/questions?type=algorithms), [Coding](https://www.aced.io/questions?type=coding)

Detailed company statistics for this question require an upgrade: [Upgrade](https://www.aced.io/upgrade?src=questions).

## Community answers

No answers have been contributed by the community yet. To answer, [log in or sign up](https://www.aced.io/signup?src=nav&returnPath=/questions/3506/check-parentheses-placement-string). Submitting an answer marks the question complete.

## Related questions

- [Check if word exists in the string.](https://www.aced.io/questions/6632/check-word-in-string)
- [How do you detect balanced parentheses in a string using Python?](https://www.aced.io/questions/3413/detect-balanced-parentheses-python)

## Related courses

### [Machine Learning Engineer Interview Prep](https://www.aced.io/courses/ml-engineer)

![Machine Learning Engineer Interview Prep](https://images.ctfassets.net/x78yjrjc11pq/6UfkHxUyLQVfDHSfLNQtWa/1be1539a65b4f6f15201f5b573c0a578/ML_Engineer_Interview_Prep_Course.jpeg?w=800&h=800&fm=webp&q=75)

We help candidates prepare for machine-learning roles at Meta, Google, Amazon, Apple, Microsoft, Nvidia, and other top companies through mock interviews, frameworks, and advice from senior candidates. The course covers ML system design, core concepts, coding, behavioral interviews, and more.

### [Behavioral Interviews: A Practical Guide for Engineers](https://www.aced.io/courses/eng-behavioral)

![Behavioral Interviews: A Practical Guide for Engineers](https://images.ctfassets.net/x78yjrjc11pq/47qcoHjzFZXE37GoacedkB/9d8e3f4910d8b06b21e76745cd9cbff3/AdobeStock_1142146335.jpeg?w=800&h=800&fm=webp&q=75)

We help engineers prepare for senior-plus behavioral interviews at FAANG and Tier-1 companies. Staff and principal engineers from Meta, Netflix, Google, and other companies made this course to help candidates avoid downleveling, elevate past projects, and communicate naturally.

## Other Aced resources

- [Courses](https://www.aced.io/courses?src=nav), including Product Management, Forward Deployed, Engineering Management, Software Engineering, System Design, Data Science, Machine Learning, and Data Engineering.
- [Loops](https://www.aced.io/guides?src=nav)
- [Experiences](https://www.aced.io/experiences?src=nav)
- [Practice](https://www.aced.io/practice?src=nav)
- [Coaching](https://www.aced.io/coaching?src=nav), including [Mock Interviews & Coaching](https://www.aced.io/coaching?category=mock_interviews&src=nav), [Resume Review](https://www.aced.io/resume?src=nav), and [Salary Negotiation](https://www.aced.io/coaching?category=negotiation&src=nav)
- [Pricing](https://www.aced.io/upgrade?src=nav)

## Your answer

Use the answer editor after logging in or signing up, then select **Submit**. Submitting marks this question complete.

---

[Read this page’s summary](https://www.aced.io/agents/api/public/v1/page-tldr?url=https%3A%2F%2Fwww.aced.io%2Fquestions%2F3506%2Fcheck-parentheses-placement-string&trace=t_679ff9ab98f3)

## Ask a follow-up about this page

Need a more specific answer? Ask the exact question you have. It returns a fresh, cited answer from Aced (formerly Exponent)’s knowledge base. No account or API key required.

Open this URL with your own question, URL-encoded. Include your question in q. All research inputs are optional; no account or setup.

`GET https://www.aced.io/agents/agent/faq?q={question}&trace=t_679ff9ab98f3`

[Tool guide and examples](https://www.aced.io/agents/agent-access) · [OpenAPI](https://www.aced.io/agents/api/public/v1/openapi.json) · [Page TLDR form](https://www.aced.io/agents/agent-tools/page-tldr?url=https%3A%2F%2Fwww.aced.io%2Fquestions%2F3506%2Fcheck-parentheses-placement-string). Opening a form does not execute a tool.