Find Rotated Substring - MATLAB Cody - MATLAB Central

Problem 269. Find Rotated Substring

Difficulty:Rate
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

54.11% Correct | 45.89% Incorrect
Last Solution submitted on Apr 03, 2025

Problem Comments

Solution Comments

Show comments
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
3

Problem Recent Solvers230

Suggested Problems

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page