Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
words1 = {'hello','there','fellow','matlab','users'};
words2 = {'what','do','you','think','of','this','problem'};
words3 = {'if','you','like','it','please','give','it','a','like'};
score = [43 56 48];
assert(isequal(scrabble_scores_5(words1,words2,words3),score))
|
2 | Pass |
words1 = {'zither','quandry','flummox','wealthy','amalgam'};
words2 = {'the','quick','brown','fox','jumps','over','a','lazy','dog'};
words3 = {'heterogeneous','homogenously','concatenate','thusly','hi'};
words4 = {'perspicacious','yes','zero','quizzical','no'};
score = [87 94 70 80];
assert(isequal(scrabble_scores_5(words1,words2,words3,words4),score))
|
3 | Pass |
words1 = {'one','two','three','four','five'};
words2 = {'six','seven','eight','nine','ten'};
score = [34 34];
assert(isequal(scrabble_scores_5(words1,words2),score))
|
4 | Pass |
words1 = {'random','word','generator','responses','below'};
words2 = {'contact','laboratory','overtone','writer','philosophy'};
words3 = {'hunting','convention','surface','superior','travel'};
words4 = {'convincing','hangover','fortnight','long','novelty'};
score = [48 69 57 67];
assert(isequal(scrabble_scores_5(words1,words2,words3,words4),score))
|
5 | Pass |
words = { {'random','word','generator','responses','below'};
{'contact','laboratory','overtone','writer','philosophy'};
{'hunting','convention','surface','superior','travel'};
{'convincing','hangover','fortnight','long','novelty'}; };
score = [48 69 57 67];
ind1 = randi(4);
ind2 = randi(4);
assert(isequal(scrabble_scores_5(words{ind1},words{ind2}),[score(ind1) score(ind2)]))
|
6 | Pass |
words = { {'zither','quandry','flummox','wealthy','amalgam'};
{'the','quick','brown','fox','jumps','over','a','lazy','dog'};
{'heterogeneous','homogenously','concatenate','thusly','hi'};
{'perspicacious','yes','zero','quizzical','no'}; };
score = [87 94 70 80];
ind1 = randi(4);
ind2 = randi(4);
assert(isequal(scrabble_scores_5(words{ind1},words{ind2}),[score(ind1) score(ind2)]))
|
Back to basics 17 - white space
245 Solvers
Check if number exists in vector
4470 Solvers
124 Solvers
60 Solvers
119 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!