Cody

Solution 234279

Submitted on 23 Apr 2013 by Lorenzo
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
%% x = 'The quick brown fox jumps over a lazy dog'; y_correct = true; assert(isequal(isPangram(x),y_correct))

Alphabet = abcdefghijklmnopqrstuvwxyz a = 32 35 a = 11 a = 8 a = 39 a = 3 29 a = 17 a = 41 a = 2 a = 7 a = 21 a = 9 a = 34 a = 23 a = 15 a = 13 18 27 40 a = 24 a = 5 a = 12 30 a = 25 a = 1 a = 6 22 a = 28 a = 14 a = 19 a = 37 a = 36

2   Pass
%% x = 'The quick brown fox jumped over a lazy dog'; y_correct = false; assert(isequal(isPangram(x),y_correct))

Alphabet = abcdefghijklmnopqrstuvwxyz a = 33 36 a = 11 a = 8 a = 26 40 a = 3 25 30 a = 17 a = 42 a = 2 a = 7 a = 21 a = 9 a = 35 a = 23 a = 15 a = 13 18 28 41 a = 24 a = 5 a = 12 31 a = []

3   Pass
%% x = 'Pack my box with five dozen liquor jugs'; y_correct = true; assert(isequal(isPangram(x),y_correct))

Alphabet = abcdefghijklmnopqrstuvwxyz a = 2 a = 9 a = 3 a = 23 a = 21 26 a = 18 a = 38 a = 16 a = 14 19 30 a = 36 a = 4 a = 29 a = 6 a = 27 a = 10 24 33 a = 1 a = 31 a = 34 a = 39 a = 15 a = 32 37 a = 20 a = 13 a = 11 a = 7 a = 25

4   Pass
%% x = 'Pack my box with four dozen liquor jugs'; y_correct = false; assert(isequal(isPangram(x),y_correct))

Alphabet = abcdefghijklmnopqrstuvwxyz a = 2 a = 9 a = 3 a = 23 a = 26 a = 18 a = 38 a = 16 a = 14 30 a = 36 a = 4 a = 29 a = 6 a = 27 a = 10 19 24 33 a = 1 a = 31 a = 21 34 a = 39 a = 15 a = 20 32 37 a = []

5   Pass
%% x = 'Sphinx of black quartz, judge my vow'; y_correct = true; assert(isequal(isPangram(x),y_correct))

Alphabet = abcdefghijklmnopqrstuvwxyz a = 13 19 a = 11 a = 14 a = 27 a = 29 a = 9 a = 28 a = 3 a = 4 a = 25 a = 15 a = 12 a = 31 a = 5 a = 8 35 a = 2 a = 17 a = 20 a = 1 a = 21 a = 18 26 a = 34 a = 36 a = 6 a = 32 a = 22

6   Pass
%% x = 'Sphinx of black onyx, judge my vow'; y_correct = false; assert(isequal(isPangram(x),y_correct))

Alphabet = abcdefghijklmnopqrstuvwxyz a = 13 a = 11 a = 14 a = 25 a = 27 a = 9 a = 26 a = 3 a = 4 a = 23 a = 15 a = 12 a = 29 a = 5 18 a = 8 17 33 a = 2 a = []

7   Pass
%% x = 'Wonderful watermelon, bringer of life.'; y_correct = false; assert(isequal(isPangram(x),y_correct))

Alphabet = abcdefghijklmnopqrstuvwxyz a = 12 a = 23 a = []

8   Pass
%% x = 'Dastardly dumpling, harbinger of doom!'; y_correct = false; assert(isequal(isPangram(x),y_correct))

Alphabet = abcdefghijklmnopqrstuvwxyz a = 2 5 22 a = 24 a = []

9   Pass
%% x = 'AbcDE FgHiJKl mmoPQrstuV Wxyz'; y_correct = false; assert(isequal(isPangram(x),y_correct))

Alphabet = abcdefghijklmnopqrstuvwxyz a = 1 a = 2 a = 3 a = 4 a = 5 a = 7 a = 8 a = 9 a = 10 a = 11 a = 12 a = 13 a = 15 16 a = []

10   Pass
%% x = 'With quiz game Cody for MATLAB, expect perverse junk.'; y_correct = true; assert(isequal(isPangram(x),y_correct))

Alphabet = abcdefghijklmnopqrstuvwxyz a = 12 26 29 a = 30 a = 16 37 a = 18 a = 14 33 36 41 44 47 a = 21 a = 11 a = 4 a = 2 8 a = 49 a = 52 a = 28 a = 13 25 a = 51 a = 17 22 a = 35 40 a = 6 a = 23 42 45 a = 46 a = 3 27 38 a = 7 50 a = 43 a = 1 a = 34 a = 19 a = 9

11   Pass
%% x = 'Punctuation marks like @#$%^</&>*?!!, when used in cartoons to stand in for swearing, are called "grawlix".'; y_correct = false; assert(isequal(isPangram(x),y_correct))

Alphabet = abcdefghijklmnopqrstuvwxyz a = 7 14 53 66 80 87 92 101 a = []