Cody

# Problem 27. Pangrams!

Solution 71733

Submitted on 5 Apr 2012 by Rhys
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))

s = THE QUICK BROWN FOX JUMPS OVER A LAZY DOG let = 32 35 let = 11 let = 8 let = 39 let = 3 29 let = 17 let = 41 let = 2 let = 7 let = 21 let = 9 let = 34 let = 23 let = 15 let = 13 18 27 40 let = 24 let = 5 let = 12 30 let = 25 let = 1 let = 6 22 let = 28 let = 14 let = 19 let = 37 let = 36

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

s = THE QUICK BROWN FOX JUMPED OVER A LAZY DOG let = 33 36 let = 11 let = 8 let = 26 40 let = 3 25 30 let = 17 let = 42 let = 2 let = 7 let = 21 let = 9 let = 35 let = 23 let = 15 let = 13 18 28 41 let = 24 let = 5 let = 12 31 let = []

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

s = PACK MY BOX WITH FIVE DOZEN LIQUOR JUGS let = 2 let = 9 let = 3 let = 23 let = 21 26 let = 18 let = 38 let = 16 let = 14 19 30 let = 36 let = 4 let = 29 let = 6 let = 27 let = 10 24 33 let = 1 let = 31 let = 34 let = 39 let = 15 let = 32 37 let = 20 let = 13 let = 11 let = 7 let = 25

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

s = PACK MY BOX WITH FOUR DOZEN LIQUOR JUGS let = 2 let = 9 let = 3 let = 23 let = 26 let = 18 let = 38 let = 16 let = 14 30 let = 36 let = 4 let = 29 let = 6 let = 27 let = 10 19 24 33 let = 1 let = 31 let = 21 34 let = 39 let = 15 let = 20 32 37 let = []

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

s = SPHINX OF BLACK QUARTZ, JUDGE MY VOW let = 13 19 let = 11 let = 14 let = 27 let = 29 let = 9 let = 28 let = 3 let = 4 let = 25 let = 15 let = 12 let = 31 let = 5 let = 8 35 let = 2 let = 17 let = 20 let = 1 let = 21 let = 18 26 let = 34 let = 36 let = 6 let = 32 let = 22

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

s = SPHINX OF BLACK ONYX, JUDGE MY VOW let = 13 let = 11 let = 14 let = 25 let = 27 let = 9 let = 26 let = 3 let = 4 let = 23 let = 15 let = 12 let = 29 let = 5 18 let = 8 17 33 let = 2 let = []

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

s = WONDERFUL WATERMELON, BRINGER OF LIFE. let = 12 let = 23 let = []

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

s = DASTARDLY DUMPLING, HARBINGER OF DOOM! let = 2 5 22 let = 24 let = []

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

s = ABCDE FGHIJKL MMOPQRSTUV WXYZ let = 1 let = 2 let = 3 let = 4 let = 5 let = 7 let = 8 let = 9 let = 10 let = 11 let = 12 let = 13 let = 15 16 let = []

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

s = WITH QUIZ GAME CODY FOR MATLAB, EXPECT PERVERSE JUNK. let = 12 26 29 let = 30 let = 16 37 let = 18 let = 14 33 36 41 44 47 let = 21 let = 11 let = 4 let = 2 8 let = 49 let = 52 let = 28 let = 13 25 let = 51 let = 17 22 let = 35 40 let = 6 let = 23 42 45 let = 46 let = 3 27 38 let = 7 50 let = 43 let = 1 let = 34 let = 19 let = 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))

s = PUNCTUATION MARKS LIKE @#\$%^</&>*?!!, WHEN USED IN CARTOONS TO STAND IN FOR SWEARING, ARE CALLED "GRAWLIX". let = 7 14 53 66 80 87 92 101 let = []