Given a string s1, find if a rotated version of s1 is present in a second string s2.
For example, rotated version of some strings are:
"matlabcentral" => "atlabcentralm" => .. => "centralmatlab" etc.
So, if
s1 = 'matlabcentral';
s2 = 'thecentralmatlab';
then the result is true.

Solution Stats

518 Solutions

242 Solvers

Last Solution submitted on Mar 12, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers242

Suggested Problems

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!