Cody

# Problem 56. Scrabble Scores

Solution 1788385

Submitted on 15 Apr 2019 by Paul Smits
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
str = 'a'; score = 1; assert(isequal(scrabble_score(str),score))

ans = 0 ans = 1

2   Pass
str = 'matlab'; score = 10; assert(isequal(scrabble_score(str),score))

ans = 0 ans = 3 ans = 4 ans = 5 ans = 6 ans = 7 ans = 10

3   Pass
str = 'quetzalcoatl'; score = 32; assert(isequal(scrabble_score(str),score))

ans = 0 ans = 10 ans = 11 ans = 12 ans = 13 ans = 23 ans = 24 ans = 25 ans = 28 ans = 29 ans = 30 ans = 31 ans = 32

4   Pass
str = 'quartz'; score = 24; assert(isequal(scrabble_score(str),score))

ans = 0 ans = 10 ans = 11 ans = 12 ans = 13 ans = 14 ans = 24

5   Pass
str = 'jackal'; score = 19; assert(isequal(scrabble_score(str),score))

ans = 0 ans = 8 ans = 9 ans = 12 ans = 17 ans = 18 ans = 19

### Community Treasure Hunt

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

Start Hunting!