← Google questions
CodingReported in a candidate post, May 2025

Group strings that are rotations of each other

Filed under Google

Given a list of strings, return groups such that every string in a group can be obtained by rotating the others, for example ['abc','bca','cab','xyz'] groups into ['abc','bca','cab'] and ['xyz'].

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Google questions

Collected from public candidate posts and coding forums. Updated Nov 2026.