Cody

# Problem 27. Pangrams!

Solution 1552095

Submitted on 7 Jun 2018 by margreet docter
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 = 32 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 a = 2 z = 27 tf = logical 0 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 = 32 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 a = 2 z = 26 tf = logical 0 tf = logical 0

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

c = 32 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 a = 2 z = 27 tf = logical 0 tf = logical 1

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

c = 32 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 119 120 121 122 a = 2 z = 26 tf = logical 0 tf = logical 0

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

c = 32 44 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 a = 3 z = 28 tf = logical 0 tf = logical 1

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

c = 32 44 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 117 118 119 120 121 a = 3 z = 1×0 empty double row vector tf = logical 0

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

c = 32 44 46 97 98 100 101 102 103 105 108 109 110 111 114 116 117 119 a = 4 z = 1×0 empty double row vector tf = logical 0

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

c = 32 33 44 97 98 100 101 102 103 104 105 108 109 110 111 112 114 115 116 117 121 a = 4 z = 1×0 empty double row vector tf = logical 0

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

c = 32 97 98 99 100 101 102 103 104 105 106 107 108 109 111 112 113 114 115 116 117 118 119 120 121 122 a = 2 z = 26 tf = logical 0 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 = 32 44 46 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 a = 4 z = 29 tf = logical 0 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 29 32 33 34 35 36 37 38 42 44 46 47 60 62 63 64 94 97 99 100 101 102 103 104 105 107 108 109 110 111 Columns 30 through 36 112 114 115 116 117 119 120 a = 17 z = 1×0 empty double row vector tf = logical 0