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
-
1 Comment
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
Suggested Problems
-
633 Solvers
-
Compute a dot product of two vectors x and y
909 Solvers
-
172 Solvers
-
743 Solvers
-
Sum of diagonals elements of a matrix
207 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!