Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
str = 'a';
score = 1;
assert(isequal(scrabble_score(str),score))
one =
1×7 string array
"eaionrtlsu" "dg" "bcmp" "fhvwy" "k" "jx" "qz"
Sc =
1 2 3 4 5 8 10
|
2 | Pass |
str = 'matlab';
score = 10;
assert(isequal(scrabble_score(str),score))
one =
1×7 string array
"eaionrtlsu" "dg" "bcmp" "fhvwy" "k" "jx" "qz"
Sc =
1 2 3 4 5 8 10
|
3 | Pass |
str = 'quetzalcoatl';
score = 32;
assert(isequal(scrabble_score(str),score))
one =
1×7 string array
"eaionrtlsu" "dg" "bcmp" "fhvwy" "k" "jx" "qz"
Sc =
1 2 3 4 5 8 10
|
4 | Pass |
str = 'quartz';
score = 24;
assert(isequal(scrabble_score(str),score))
one =
1×7 string array
"eaionrtlsu" "dg" "bcmp" "fhvwy" "k" "jx" "qz"
Sc =
1 2 3 4 5 8 10
|
5 | Pass |
str = 'jackal';
score = 19;
assert(isequal(scrabble_score(str),score))
one =
1×7 string array
"eaionrtlsu" "dg" "bcmp" "fhvwy" "k" "jx" "qz"
Sc =
1 2 3 4 5 8 10
|
707 Solvers
1309 Solvers
Remove the two elements next to NaN value
411 Solvers
420 Solvers
340 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!