Cody

# Problem 27. Pangrams!

Solution 318833

Submitted on 13 Sep 2013 by Saptarshi Roy
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))

ddnew = Columns 1 through 16 20 8 5 33 17 21 9 3 11 33 2 18 15 23 14 33 Columns 17 through 32 6 15 24 33 10 21 13 16 19 33 15 22 5 18 33 1 Columns 33 through 41 33 12 1 26 25 33 4 15 7 sum = 1 sum = 2 sum = 3 sum = 4 sum = 5 sum = 6 sum = 7 sum = 8 sum = 9 sum = 10 sum = 11 sum = 12 sum = 13 sum = 14 sum = 15 sum = 16 sum = 17 sum = 18 sum = 19 sum = 20 sum = 21 sum = 22 sum = 23 sum = 24 sum = 25 sum = 26 tf = 1

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

ddnew = Columns 1 through 16 20 8 5 33 17 21 9 3 11 33 2 18 15 23 14 33 Columns 17 through 32 6 15 24 33 10 21 13 16 5 4 33 15 22 5 18 33 Columns 33 through 42 1 33 12 1 26 25 33 4 15 7 sum = 1 sum = 2 sum = 3 sum = 4 sum = 5 sum = 6 sum = 7 sum = 8 sum = 9 sum = 10 sum = 11 sum = 12 sum = 13 sum = 14 sum = 15 sum = 16 sum = 17 sum = 18 sum = 19 sum = 20 sum = 21 sum = 22 sum = 23 sum = 24 sum = 25 tf = 0

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

ddnew = Columns 1 through 16 16 1 3 11 33 13 25 33 2 15 24 33 23 9 20 8 Columns 17 through 32 33 6 9 22 5 33 4 15 26 5 14 33 12 9 17 21 Columns 33 through 39 15 18 33 10 21 7 19 sum = 1 sum = 2 sum = 3 sum = 4 sum = 5 sum = 6 sum = 7 sum = 8 sum = 9 sum = 10 sum = 11 sum = 12 sum = 13 sum = 14 sum = 15 sum = 16 sum = 17 sum = 18 sum = 19 sum = 20 sum = 21 sum = 22 sum = 23 sum = 24 sum = 25 sum = 26 tf = 1

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

ddnew = Columns 1 through 16 16 1 3 11 33 13 25 33 2 15 24 33 23 9 20 8 Columns 17 through 32 33 6 15 21 18 33 4 15 26 5 14 33 12 9 17 21 Columns 33 through 39 15 18 33 10 21 7 19 sum = 1 sum = 2 sum = 3 sum = 4 sum = 5 sum = 6 sum = 7 sum = 8 sum = 9 sum = 10 sum = 11 sum = 12 sum = 13 sum = 14 sum = 15 sum = 16 sum = 17 sum = 18 sum = 19 sum = 20 sum = 21 sum = 22 sum = 23 sum = 24 sum = 25 tf = 0

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

ddnew = Columns 1 through 16 19 16 8 9 14 24 33 15 6 33 2 12 1 3 11 33 Columns 17 through 32 17 21 1 18 20 26 45 33 10 21 4 7 5 33 13 25 Columns 33 through 36 33 22 15 23 sum = 1 sum = 2 sum = 3 sum = 4 sum = 5 sum = 6 sum = 7 sum = 8 sum = 9 sum = 10 sum = 11 sum = 12 sum = 13 sum = 14 sum = 15 sum = 16 sum = 17 sum = 18 sum = 19 sum = 20 sum = 21 sum = 22 sum = 23 sum = 24 sum = 25 sum = 26 tf = 1

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

ddnew = Columns 1 through 16 19 16 8 9 14 24 33 15 6 33 2 12 1 3 11 33 Columns 17 through 32 15 14 25 24 45 33 10 21 4 7 5 33 13 25 33 22 Columns 33 through 34 15 23 sum = 1 sum = 2 sum = 3 sum = 4 sum = 5 sum = 6 sum = 7 sum = 8 sum = 9 sum = 10 sum = 11 sum = 12 sum = 13 sum = 14 sum = 15 sum = 16 sum = 17 sum = 18 sum = 19 sum = 20 sum = 21 sum = 22 tf = 0

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

ddnew = Columns 1 through 16 23 15 14 4 5 18 6 21 12 33 23 1 20 5 18 13 Columns 17 through 32 5 12 15 14 45 33 2 18 9 14 7 5 18 33 15 6 Columns 33 through 38 33 12 9 6 5 47 sum = 1 sum = 2 sum = 3 sum = 4 sum = 5 sum = 6 sum = 7 sum = 8 sum = 9 sum = 10 sum = 11 sum = 12 sum = 13 sum = 14 sum = 15 tf = 0

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

ddnew = Columns 1 through 16 4 1 19 20 1 18 4 12 25 33 4 21 13 16 12 9 Columns 17 through 32 14 7 45 33 8 1 18 2 9 14 7 5 18 33 15 6 Columns 33 through 38 33 4 15 15 13 34 sum = 1 sum = 2 sum = 3 sum = 4 sum = 5 sum = 6 sum = 7 sum = 8 sum = 9 sum = 10 sum = 11 sum = 12 sum = 13 sum = 14 sum = 15 sum = 16 sum = 17 sum = 18 tf = 0

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

ddnew = Columns 1 through 16 1 2 3 4 5 33 6 7 8 9 10 11 12 33 13 13 Columns 17 through 29 15 16 17 18 19 20 21 22 33 23 24 25 26 sum = 1 sum = 2 sum = 3 sum = 4 sum = 5 sum = 6 sum = 7 sum = 8 sum = 9 sum = 10 sum = 11 sum = 12 sum = 13 sum = 14 sum = 15 sum = 16 sum = 17 sum = 18 sum = 19 sum = 20 sum = 21 sum = 22 sum = 23 sum = 24 sum = 25 tf = 0

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

ddnew = Columns 1 through 16 23 9 20 8 33 17 21 9 26 33 7 1 13 5 33 3 Columns 17 through 32 15 4 25 33 6 15 18 33 13 1 20 12 1 2 45 33 Columns 33 through 48 5 24 16 5 3 20 33 16 5 18 22 5 18 19 5 33 Columns 49 through 53 10 21 14 11 47 sum = 1 sum = 2 sum = 3 sum = 4 sum = 5 sum = 6 sum = 7 sum = 8 sum = 9 sum = 10 sum = 11 sum = 12 sum = 13 sum = 14 sum = 15 sum = 16 sum = 17 sum = 18 sum = 19 sum = 20 sum = 21 sum = 22 sum = 23 sum = 24 sum = 25 sum = 26 tf = 1

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))

ddnew = Columns 1 through 16 16 21 14 3 20 21 1 20 9 15 14 33 13 1 18 11 Columns 17 through 32 19 33 12 9 11 5 33 65 36 37 38 95 61 48 39 63 Columns 33 through 48 43 64 34 34 45 33 23 8 5 14 33 21 19 5 4 33 Columns 49 through 64 9 14 33 3 1 18 20 15 15 14 19 33 20 15 33 19 Columns 65 through 80 20 1 14 4 33 9 14 33 6 15 18 33 19 23 5 1 Columns 81 through 96 18 9 14 7 45 33 1 18 5 33 3 1 12 12 5 4 Columns 97 through 107 33 35 7 18 1 23 12 9 24 35 47 sum = 1 sum = 2 sum = 3 sum = 4 sum = 5 sum = 6 sum = 7 sum = 8 sum = 9 sum = 10 sum = 11 sum = 12 sum = 13 sum = 14 sum = 15 sum = 16 sum = 17 sum = 18 sum = 19 sum = 20 tf = 0