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.


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

Solution Stats

72.22% Correct | 27.78% Incorrect
Last solution submitted on Sep 18, 2018

Problem Comments

Recent Solvers23

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!