Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
word = 'matlab';
mult = {'','DW','','','','DL'};
score = 26;
assert(isequal(scrabble_scores_3(word,mult),score))
|
2 | Pass |
word = 'problem';
mult = {'','','','','','',''};
score = 13;
assert(isequal(scrabble_scores_3(word,mult),score))
|
3 | Pass |
word = 'zither';
mult = {'','DW','','','','DW'};
score = 72;
assert(isequal(scrabble_scores_3(word,mult),score))
|
4 | Pass |
word = 'quandry';
mult = {'TL','','','','TL','',''};
score = 44;
assert(isequal(scrabble_scores_3(word,mult),score))
|
5 | Pass |
word = 'concatenates';
mult = {'TW','','','DL','','','','TW','','','','DL'};
score = 180;
assert(isequal(scrabble_scores_3(word,mult),score))
|
6 | Pass |
word = 'heterogeneousness';
mult = {'QW','','','DL','','','','TW','','','DL','','','TW','','',''};
score = 828;
assert(isequal(scrabble_scores_3(word,mult),score))
|
7 | Pass |
word = {'hello','donut','cheat','shape','quote'};
mult = {'QW','','','DL',''};
score = [36 28 44 52 60];
ind = randi(5);
assert(isequal(scrabble_scores_3(word{ind},mult),score(ind)))
|
8 | Pass |
word = {'hello','donut','cheat','shape','quote'};
mult = {'QL','','','','DW'};
score = [40 24 38 26 88];
ind = randi(5);
assert(isequal(scrabble_scores_3(word{ind},mult),score(ind)))
|
272 Solvers
151 Solvers
Back to basics 22 - Rotate a matrix
763 Solvers
Back to basics - mean of corner elements of a matrix
297 Solvers
327 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!