Problem 2523. longest common substring : Skipped character version
Solution Stats
Problem Comments
-
4 Comments
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 Comments
Show commentsProblem Recent Solvers23
Suggested Problems
-
Remove all the words that end with "ain"
1966 Solvers
-
It dseon't mettar waht oedrr the lrettes in a wrod are.
1462 Solvers
-
Construct a string from letters and counts
138 Solvers
-
536 Solvers
-
363 Solvers
More from this Author44
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!