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

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

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.

82 correct solutions
40 incorrect solutions

Last solution submitted on Sep 26, 2015

3 players like this problem

1 Comment

Jon
on 24 Mar 2014

Lookup cheat

1 Comment