Cody

Solution 127233

Submitted on 13 Aug 2012 by Carsten
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
%% str = 'a'; score = 1; assert(isequal(scrabble_score(str),score))

x = Columns 1 through 10 1 3 3 2 1 4 2 4 1 8 Columns 11 through 20 5 1 3 1 1 3 10 1 1 1 Columns 21 through 26 1 4 4 8 4 10 ans = 1

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

x = Columns 1 through 10 1 3 3 2 1 4 2 4 1 8 Columns 11 through 20 5 1 3 1 1 3 10 1 1 1 Columns 21 through 26 1 4 4 8 4 10 ans = 10

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

x = Columns 1 through 10 1 3 3 2 1 4 2 4 1 8 Columns 11 through 20 5 1 3 1 1 3 10 1 1 1 Columns 21 through 26 1 4 4 8 4 10 ans = 32

Suggested Problems

More from this Author95