Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
s1 = 'Sunday';
s2 = 'Monday';
d_correct = 2;
assert(isequal(hamming(s1,s2),d_correct))
|
2 | Pass |
%%
s1 = 'Cody is not fun?';
s2 = 'Cody is awesome!';
d_correct = 8;
assert(isequal(hamming(s1,s2),d_correct))
|
3 | Pass |
%%
s1 = 'I do not like MATLAB';
s2 = 'I really love MATLAB';
d_correct = 8;
assert(isequal(hamming(s1,s2),d_correct))
|
4 | Pass |
%%
s1 = 'abcdefghijklmnopqrstuvwxyz';
s2 = 'AbcdEfghIjklmnOpqrstUvwxyz';
d_correct = 5;
assert(isequal(hamming(s1,s2),d_correct))
|
5 | Pass |
%%
s1 = '1234567891011121314151617181920';
s2 = '2019181716151413121110987654321';
d_correct = 27;
assert(isequal(hamming(s1,s2),d_correct))
|
6 | Pass |
%%
s1 = 'race car';
s2 = 'rac ecar';
d_correct = 2;
assert(isequal(hamming(s1,s2),d_correct))
|
7 | Pass |
%%
s1 = 'Are these strings identical?';
s2 = 'Are these strings identical?';
d_correct = 0;
assert(isequal(hamming(s1,s2),d_correct))
|
8 | Pass |
%%
s1 = '';
s2 = '';
d_correct = 0;
assert(isequal(hamming(s1,s2),d_correct))
|
Return the 3n+1 sequence for n
6170 Solvers
261 Solvers
Back to basics 22 - Rotate a matrix
763 Solvers
Are all the three given point in the same line?
270 Solvers
find the maximum element of the matrix
349 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!