Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
s1 = 'I do not like MATLAB';
s2 = 'I love MATLAB a lot';
d_correct = 4;
assert(isequal(modlevenshtein(s1,s2),d_correct))
|
2 | Pass |
%%
s1 = 'Which words need to be edited?';
s2 = 'Can you tell which words need to be edited?';
d_correct = 3;
assert(isequal(modlevenshtein(s1,s2),d_correct))
|
3 | Pass |
%%
s1 = 'Are these strings identical?';
s2 = 'These strings are not identical!';
d_correct = 3;
assert(isequal(modlevenshtein(s1,s2),d_correct))
|
4 | Pass |
%%
s1 = 'Settlers of Catan is my favorite game';
s2 = 'Tic-tac-toe is also one of my favorite games';
d_correct = 6;
assert(isequal(modlevenshtein(s1,s2),d_correct))
|
5 | Pass |
%%
s1 = 'This one should be simple, but maybe it isn''t';
s2 = 'This one should be simple, but maybe it isn''t';
d_correct = 0;
assert(isequal(modlevenshtein(s1,s2),d_correct))
|
6 | Pass |
%%
s1 = 'Testing, testing, one, two, three,...';
s2 = 'Testing, testing, one, two,...';
d_correct = 1;
assert(isequal(modlevenshtein(s1,s2),d_correct))
|
7 | Pass |
%%
s1 = 'How many edits do you think there are in this example? I don''t know!';
s2 = 'Well, it is hard to tell how many edits are required because there are big differences in the two strings.';
d_correct = 15;
assert(isequal(modlevenshtein(s1,s2),d_correct))
|
Project Euler: Problem 2, Sum of even Fibonacci
835 Solvers
620 Solvers
Flag largest magnitude swings as they occur
582 Solvers
Create logical matrix with a specific row and column sums
170 Solvers
Given a 4x4 matrix, swap the two middle columns
515 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!