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.