Cody

# Problem 27. Pangrams!

Solution 1884151

Submitted on 25 Jul 2019 by Chompo40
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))

c = Columns 1 through 30 20 8 5 -64 17 21 9 3 11 -64 2 18 15 23 14 -64 6 15 24 -64 10 21 13 16 19 -64 15 22 5 18 Columns 31 through 41 -64 1 -64 12 1 26 25 -64 4 15 7 c = Columns 1 through 30 20 8 5 17 21 9 3 11 2 18 15 23 14 6 15 24 10 21 13 16 19 15 22 5 18 1 12 1 26 25 Columns 31 through 33 4 15 7 d = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 tf = logical 1

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

c = Columns 1 through 30 20 8 5 -64 17 21 9 3 11 -64 2 18 15 23 14 -64 6 15 24 -64 10 21 13 16 5 4 -64 15 22 5 Columns 31 through 42 18 -64 1 -64 12 1 26 25 -64 4 15 7 c = Columns 1 through 30 20 8 5 17 21 9 3 11 2 18 15 23 14 6 15 24 10 21 13 16 5 4 15 22 5 18 1 12 1 26 Columns 31 through 34 25 4 15 7 d = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 tf = logical 0

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

c = Columns 1 through 30 16 1 3 11 -64 13 25 -64 2 15 24 -64 23 9 20 8 -64 6 9 22 5 -64 4 15 26 5 14 -64 12 9 Columns 31 through 39 17 21 15 18 -64 10 21 7 19 c = Columns 1 through 30 16 1 3 11 13 25 2 15 24 23 9 20 8 6 9 22 5 4 15 26 5 14 12 9 17 21 15 18 10 21 Columns 31 through 32 7 19 d = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 tf = logical 1

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

c = Columns 1 through 30 16 1 3 11 -64 13 25 -64 2 15 24 -64 23 9 20 8 -64 6 15 21 18 -64 4 15 26 5 14 -64 12 9 Columns 31 through 39 17 21 15 18 -64 10 21 7 19 c = Columns 1 through 30 16 1 3 11 13 25 2 15 24 23 9 20 8 6 15 21 18 4 15 26 5 14 12 9 17 21 15 18 10 21 Columns 31 through 32 7 19 d = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 tf = logical 0

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

c = Columns 1 through 30 19 16 8 9 14 24 -64 15 6 -64 2 12 1 3 11 -64 17 21 1 18 20 26 -52 -64 10 21 4 7 5 -64 Columns 31 through 36 13 25 -64 22 15 23 c = 19 16 8 9 14 24 15 6 2 12 1 3 11 17 21 1 18 20 26 -52 10 21 4 7 5 13 25 22 15 23 d = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 tf = logical 1

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

c = Columns 1 through 30 19 16 8 9 14 24 -64 15 6 -64 2 12 1 3 11 -64 15 14 25 24 -52 -64 10 21 4 7 5 -64 13 25 Columns 31 through 34 -64 22 15 23 c = 19 16 8 9 14 24 15 6 2 12 1 3 11 15 14 25 24 -52 10 21 4 7 5 13 25 22 15 23 d = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 tf = logical 0

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

c = Columns 1 through 30 23 15 14 4 5 18 6 21 12 -64 23 1 20 5 18 13 5 12 15 14 -52 -64 2 18 9 14 7 5 18 -64 Columns 31 through 38 15 6 -64 12 9 6 5 -50 c = Columns 1 through 30 23 15 14 4 5 18 6 21 12 23 1 20 5 18 13 5 12 15 14 -52 2 18 9 14 7 5 18 15 6 12 Columns 31 through 34 9 6 5 -50 d = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 tf = logical 0

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

c = Columns 1 through 30 4 1 19 20 1 18 4 12 25 -64 4 21 13 16 12 9 14 7 -52 -64 8 1 18 2 9 14 7 5 18 -64 Columns 31 through 38 15 6 -64 4 15 15 13 -63 c = Columns 1 through 30 4 1 19 20 1 18 4 12 25 4 21 13 16 12 9 14 7 -52 8 1 18 2 9 14 7 5 18 15 6 4 Columns 31 through 34 15 15 13 -63 d = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 tf = logical 0

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

c = 1 2 3 4 5 -64 6 7 8 9 10 11 12 -64 13 13 15 16 17 18 19 20 21 22 -64 23 24 25 26 c = 1 2 3 4 5 6 7 8 9 10 11 12 13 13 15 16 17 18 19 20 21 22 23 24 25 26 d = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 tf = logical 0

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

c = Columns 1 through 30 23 9 20 8 -64 17 21 9 26 -64 7 1 13 5 -64 3 15 4 25 -64 6 15 18 -64 13 1 20 12 1 2 Columns 31 through 53 -52 -64 5 24 16 5 3 20 -64 16 5 18 22 5 18 19 5 -64 10 21 14 11 -50 c = Columns 1 through 30 23 9 20 8 17 21 9 26 7 1 13 5 3 15 4 25 6 15 18 13 1 20 12 1 2 -52 5 24 16 5 Columns 31 through 45 3 20 16 5 18 22 5 18 19 5 10 21 14 11 -50 d = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 tf = logical 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))

c = Columns 1 through 30 16 21 14 3 20 21 1 20 9 15 14 -64 13 1 18 11 19 -64 12 9 11 5 -64 -32 -61 -60 -59 -2 -36 -49 Columns 31 through 60 -58 -34 -54 -33 -63 -63 -52 -64 23 8 5 14 -64 21 19 5 4 -64 9 14 -64 3 1 18 20 15 15 14 19 -64 Columns 61 through 90 20 15 -64 19 20 1 14 4 -64 9 14 -64 6 15 18 -64 19 23 5 1 18 9 14 7 -52 -64 1 18 5 -64 Columns 91 through 107 3 1 12 12 5 4 -64 -62 7 18 1 23 12 9 24 -62 -50 c = Columns 1 through 30 16 21 14 3 20 21 1 20 9 15 14 13 1 18 11 19 12 9 11 5 -32 -61 -60 -59 -2 -36 -49 -58 -34 -54 Columns 31 through 60 -33 -63 -63 -52 23 8 5 14 21 19 5 4 9 14 3 1 18 20 15 15 14 19 20 15 19 20 1 14 4 9 Columns 61 through 90 14 6 15 18 19 23 5 1 18 9 14 7 -52 1 18 5 3 1 12 12 5 4 -62 7 18 1 23 12 9 24 Columns 91 through 92 -62 -50 d = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 tf = logical 0