Question on Test Suite #2.
s1 = 'Which words need to be edited?';
s2 = 'Can you tell which words need to be edited?';
d_correct = 3;
I see this as a 2, Substitute w for W and insert 'Can you tell ' - done. Where is the 3rd change?
Richard - you do not have to substitute w for W (words are case-insensitive). And inserting 'Can you tell' is three edits, one for each word.
Was the problem too difficult; unclear?
With regexp assistance from 115643.
Calculate the Levenshtein distance between two strings
Make one big string out of two smaller strings
Cell Counting: How Many Draws?
Generate a random matrix A of (1,-1)
Cumulative maximum of an array
Convert ColorSpec string to RGB triplet
Cumulative minimum of an array
Connect Four: find winning move
Triangular matrices in 3D array
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