← BlackRock questions

Check if string is rotated by two places

Filed under BlackRock · Also reported at Publicis Sapient

Given two strings s1 and s2, check if s2 can be obtained by rotating s1 by exactly two places in either anti-clockwise or clockwise direction.

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

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