Problem 95. Given two arrays, find the maximum overlap
Solution Stats
Problem Comments
-
12 Comments
minor point - the specification is poorly worded.
The test input/output is not strings, but rather integer arrays.
e.g.
s1 = [10 20 30 40 50]
rather than "10 20 30 40 50"
I suppose this problem was written before the introduction of strings to Matlab (2016b) and so it may not have been so ambiguous at the time. (although even back then I would have interpreted the word "string" to mean a character array.)
Good Question
difficult
Solution Comments
Show commentsProblem Recent Solvers1588
Suggested Problems
-
Swap the first and last columns
21043 Solvers
-
1751 Solvers
-
Remove the polynomials that have positive real elements of their roots.
1703 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
832 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1141 Solvers
More from this Author96
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!