Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = 'cat';
b = 'cat'
y_correct = 3;
assert(isequal(str(a,b),y_correct))
b =
'cat'
m =
2
y =
3
|
2 | Pass |
a = 'cat';
b = 'cut'
y_correct = 3;
assert(isequal(str(a,b),y_correct))
b =
'cut'
m =
2
y =
3
|
3 | Pass |
a = 'president';
b = 'precedent'
y_correct = 9;
assert(isequal(str(a,b),y_correct))
b =
'precedent'
m =
8
y =
9
|
4 | Pass |
a = 'katy perry';
b = 'qqa^%^%rrrrRR'
y_correct = 8;
assert(isequal(str(a,b),y_correct))
b =
'qqa^%^%rrrrRR'
m =
7
y =
8
|
5 | Pass |
a = 'cody was down for a while';
b = '12w123456789o88888888899'
y_correct = 11;
assert(isequal(str(a,b),y_correct))
b =
'12w123456789o88888888899'
m =
10
y =
11
|
6 | Pass |
a = 'cat';
b = 'dog and other pets'
y_correct = 1;
assert(isequal(str(a,b),y_correct))
b =
'dog and other pets'
m =
1
y =
2
y =
1
|
7 | Pass |
a = 'cat';
b = 'aca'
y_correct = 2;
assert(isequal(str(a,b),y_correct))
b =
'aca'
m =
1
y =
2
|
8 | Pass |
a = 'apparently nothing in common';
b = 'zzzz zz zzzz'
y_correct = 4;
assert(isequal(str(a,b),y_correct))
b =
'zzzz zz zzzz'
m =
3
y =
4
|
9 | Pass |
a = 'nothing in common';
b = 'zzzz'
y_correct = 0;
assert(isequal(str(a,b),y_correct))
b =
'zzzz'
m =
[]
y =
0
|
10 | Pass |
a = 'empty string testing';
b = '';
y_correct = 0;
assert(isequal(str(a,b),y_correct))
m =
[]
y =
0
|
11 | Pass |
a = '';
b = '';
y_correct = 0;
assert(isequal(str(a,b),y_correct))
m =
[]
y =
0
|
10765 Solvers
Solve the set of simultaneous linear equations
175 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
385 Solvers
262 Solvers
Help the Patriots get to the Super Bowl
115 Solvers