Problem 2469. Cat, Meowcat and Concatenation

Created by rifat in Community

Input is a cell array containing several strings. Find the largest continuous sub-string common to all strings. All strings are in lower case and unique answer exists.


in = {'cat','meowcat','concatenation'};
out = 'cat';

Solution Stats

72.73% Correct | 27.27% Incorrect
Last solution submitted on Jan 10, 2019

Problem Comments

Recent Solvers24

Suggested Problems

More from this Author45

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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!