Given two strings, find the longest string which is contained within both strings.
e.g. the longest string that is contained in the words 'banana' and 'anagram' is 'ana'
If there is no match, return an empty string.
arrrgh i dont have a matlab right now, im at home. trying on this test suit is boring..
Additional test cases have been added.
Omit columns averages from a matrix
Find number of days
sum of first 'n' terms
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
Exact binary matrix factorization
What day is it?
Path of least resistance
Elapsed time is -0.005204 seconds.
Partial sorting algorithm
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office