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?
Solution CommentsShow comments
Problem Recent Solvers23
Remove all the words that end with "ain"
It dseon't mettar waht oedrr the lrettes in a wrod are.
Construct a string from letters and counts
More from this Author44
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!