Problem 2523. longest common substring : Skipped character version
48.1% Correct | 51.9% Incorrect
Last Solution submitted on Dec 02, 2022
Show 1 older comment
Michael Ryan on 20 Aug 2014
Shouldn't there be two spaces between example and a in y_correct in test 4?
rifat on 20 Aug 2014
right.. corrected. Thanks :)
Alfonso Nieto-Castanon on 29 Sep 2014
perhaps add another test to avoid non-general solutions? (e.g. str1='abaa' str2='aaab' should return 'aaa')
James on 1 Nov 2017
For test 5:
str1 = 'a string with many characters';
str2 = 'zzz zzz zzz zzz zzz';
Why wouldn't the correct answer be four spaces instead of just one?
bainhome on 19 Jul 2018
Using regexp as outer function's delimiter...This is a hell of reverse thinking case! my hat is off, Bravo!
Problem Recent Solvers23
Project Euler: Problem 7, Nth prime
More from this Author44
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!