Cody

# Problem 3047. Scrabble Scores - 2

Solution 1000553

Submitted on 7 Oct 2016 by Wolfgang
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
words = {'hello','there','fellow','matlab','users'}; score = 43; assert(isequal(scrabble_scores_2(words),score))

str = hello str = there str = fellow str = matlab str = users

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

str = what str = do str = you str = think str = of str = this str = problem

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

str = if str = you str = like str = it str = please str = give str = it str = a str = like

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

str = zither str = quandry str = flummox str = wealthy str = amalgam

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

str = one str = two str = three str = four str = five

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

str = thusly

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

str = no

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

str = the quick brown fox jumps over a lazy dog

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

str = the str = quick str = brown str = fox str = jumps str = over str = a str = lazy str = dog

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!