Cody

Problem 2469. Cat, Meowcat and Concatenation

Created by rifat in Strings III

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.

Example:

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

Solution Stats

71.43% Correct | 28.57% Incorrect
Last solution submitted on Jun 15, 2018

Problem Comments

Recent Solvers20

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!