Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Problem 269. Find Rotated Substring

Created by Roy Mathew

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.

Tags

Problem Group

Solution Statistics

65 correct solutions 31 incorrect solutions
Last solution submitted on Jul 22, 2014

Problem Comments

Solution Comments