Cody

# Problem 3047. Scrabble Scores - 2

Solution 1779250

Submitted on 9 Apr 2019
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   Fail
words = {'hello','there','fellow','matlab','users'}; score = 43; assert(isequal(scrabble_scores_2(words),score))

Undefined function 'scrabble_scores_2' for input arguments of type 'cell'. Error in Test1 (line 3) assert(isequal(scrabble_scores_2(words),score))

2   Fail
words = {'what','do','you','think','of','this','problem'}; score = 56; assert(isequal(scrabble_scores_2(words),score))

Undefined function 'scrabble_scores_2' for input arguments of type 'cell'. Error in Test2 (line 3) assert(isequal(scrabble_scores_2(words),score))

3   Fail
words = {'if','you','like','it','please','give','it','a','like'}; score = 48; assert(isequal(scrabble_scores_2(words),score))

Undefined function 'scrabble_scores_2' for input arguments of type 'cell'. Error in Test3 (line 3) assert(isequal(scrabble_scores_2(words),score))

4   Fail
words = {'zither','quandry','flummox','wealthy','amalgam'}; score = 87; assert(isequal(scrabble_scores_2(words),score))

Undefined function 'scrabble_scores_2' for input arguments of type 'cell'. Error in Test4 (line 3) assert(isequal(scrabble_scores_2(words),score))

5   Fail
words = {'one','two','three','four','five'}; score = 34; assert(isequal(scrabble_scores_2(words),score))

Undefined function 'scrabble_scores_2' for input arguments of type 'cell'. Error in Test5 (line 3) assert(isequal(scrabble_scores_2(words),score))

6   Fail
words = {'heterogeneous','homogenously','concatenate','thusly','hi'}; score = [17 21 15 12 5]; ind = randi(5); assert(isequal(scrabble_scores_2(words(ind)),score(ind)))

Undefined function 'scrabble_scores_2' for input arguments of type 'cell'. Error in Test6 (line 4) assert(isequal(scrabble_scores_2(words(ind)),score(ind)))

7   Fail
words = {'perspicacious','yes','zero','quizzical','no'}; score = [21 6 13 38 2]; ind = randi(5); assert(isequal(scrabble_scores_2(words(ind)),score(ind)))

Undefined function 'scrabble_scores_2' for input arguments of type 'cell'. Error in Test7 (line 4) assert(isequal(scrabble_scores_2(words(ind)),score(ind)))

8   Fail
words = {'the quick brown fox jumps over a lazy dog'}; score = 94; assert(isequal(scrabble_scores_2(words),score))

Undefined function 'scrabble_scores_2' for input arguments of type 'cell'. Error in Test8 (line 3) assert(isequal(scrabble_scores_2(words),score))

9   Fail
words = {'the','quick','brown','fox','jumps','over','a','lazy','dog'}; score = 94; assert(isequal(scrabble_scores_2(words),score))

Undefined function 'scrabble_scores_2' for input arguments of type 'cell'. Error in Test9 (line 3) assert(isequal(scrabble_scores_2(words),score))