Cody

# Problem 3050. Scrabble Scores - 5

Solution 2132694

Submitted on 18 Feb 2020 by Asif Newaz
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

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))

b = 8 8 12 10 5 b = 10 3 6 12 5 7 13 b = 5 6 8 2 8 8 2 1 8

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))

b = 18 20 21 16 12 b = 6 20 10 13 16 7 1 16 5 b = 17 21 15 12 5 b = 21 6 13 38 2

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))

b = 3 6 8 7 10 b = 10 8 9 4 3

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))

b = 9 8 10 11 10 b = 11 15 11 9 23 b = 11 15 12 10 9 b = 18 15 16 5 13

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)]))

b = 11 15 12 10 9 b = 18 15 16 5 13

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)]))

b = 21 6 13 38 2 b = 21 6 13 38 2