# Buddy strings coding interview question | 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/6356/group-buddy-strings-same-distance
Source observed: 2026-11-05T00:49:32.933Z
Last checked: 2026-11-05T00:49:32.933+00:00
Indexed: 2026-11-07T02:59:24.521+00:00

---

# Buddy strings coding interview question

We provide this coding interview practice question for software engineering candidates:

> Given an array of strings, return groups of “buddy strings,” where the strings have the same length and the distance between corresponding characters is the same.

The question is categorized as [Data Structures & Algorithms](https://www.aced.io/questions?type=algorithms) and [Coding](https://www.aced.io/questions?type=coding), and is associated with the [Software Engineer](https://www.aced.io/questions?role=swe) role and [Google](https://www.aced.io/questions?company=google). Select **I was asked this** to record that you encountered it, **Save** to save it, or sign in or sign up to submit an answer. The page also offers an **Upgrade** option for detailed company statistics: [Upgrade](https://www.aced.io/upgrade?src=questions).

## Interview details

- **Interview reports:** 1 shared interview experience
- **Reported last asked:** 9 months ago
- **Role:** Software Engineer
- **Level:** Entry Level / L3
- **Company:** Google
- **Category:** Data Structures & Algorithms; Coding

## Interview experience

A shared Google interview experience describes a candidate who entered through a referral and proceeded directly to interviews without a recruiter screen. The candidate applied around the end of September and heard back in mid-November. The process included two 45-minute virtual rounds in December—one technical and one “googliness/behavioral”—followed by a response within a week. After roughly another month of preparation, the candidate completed an onsite in mid-January with two additional 45-minute technical interviews.

The candidate described the coding questions as more customized than standard LeetCode questions. Google appeared to emphasize clarifying the problem, communicating the reasoning process, and explaining the path to a solution. The candidate completed the full loop but was rejected. Feedback timing varied: initial feedback arrived quickly, while the final decision took about three weeks. This is a candidate’s experience, not a result or performance figure from Aced.

[Read the shared Google Software Engineer interview experience](https://www.aced.io/experiences/google-software-engineer-interview-54740a)

## Community answers

No community answers have been contributed yet.

## Related questions

- [Given an m x n grid of characters board and a string word, return true if word exists in the grid.](https://www.aced.io/questions/5874/word-search)
- [Given a list of strings, find the number of occurrences of the second letter of the first word, and return the character and its count.](https://www.aced.io/questions/6292/count-second-letter-first-word-list)

## Related courses

### [Software Engineering Interview Prep](https://www.aced.io/courses/software-engineering)

![Software Engineering Interview Prep](https://images.ctfassets.net/x78yjrjc11pq/4VkuYewBHUFIVUS5oJDW5h/02e833439b1289f25f38f13f81cbdca3/adobe_stock_optimized.jpeg?w=800&h=800&fm=webp&q=75)

We help candidates prepare for software engineering roles at Google, Amazon, Microsoft, Meta, Apple, and other companies through mock interviews, frameworks, senior-candidate advice, data structures, algorithms, system design, people management, behavioral interview preparation, and more.

### [System Design Interviews](https://www.aced.io/courses/system-design-interviews)

![System Design Interviews](https://images.ctfassets.net/x78yjrjc11pq/78x7miFZFjBCrM5GqftrMJ/2f6d26e632c4e7265c49f6a180227edb/system_design_track_compressed_26ac98a46e__281_29_5be2280f31.jpeg?w=800&h=800&fm=webp&q=75)

We teach candidates to answer current system design questions across product, infrastructure, and AI domains with in-depth video examples, written breakdowns, reference patterns, and mock interview videos featuring senior engineers and managers.

## Submit an answer

Sign in or [sign up](https://www.aced.io/signup?src=nav&returnPath=/questions/6356/group-buddy-strings-same-distance) to answer this question. Submitting marks the 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%2F6356%2Fgroup-buddy-strings-same-distance&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%2F6356%2Fgroup-buddy-strings-same-distance). Opening a form does not execute a tool.