โ† Microsoft questions

Check if one character array is a rotation of another without extra space

Filed under Microsoft

Given two character arrays of the same length, determine if the first array is a rotation of the other. The solution must use no extra space and can have a quadratic time complexity.

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 Microsoft questions

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