Cody

Solution 2099523

Submitted on 20 Jan 2020 by Amiko2011
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))

smallletters = 'abcdefghijklmnopqrstuvwxyz' capitalletters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' index_small = Columns 1 through 30 0 8 5 0 17 21 9 3 11 0 2 18 15 23 14 0 6 15 24 0 10 21 13 16 19 0 15 22 5 18 Columns 31 through 41 0 1 0 12 1 26 25 0 4 15 7 index_capital = Columns 1 through 30 20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 41 0 0 0 0 0 0 0 0 0 0 0 index = Columns 1 through 30 0 8 5 0 17 21 9 3 11 0 2 18 15 23 14 0 6 15 24 0 10 21 13 16 19 0 15 22 5 18 Columns 31 through 60 0 1 0 12 1 26 25 0 4 15 7 20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 82 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 index_unique = 0 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 index_unique = 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 array_check = 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))

smallletters = 'abcdefghijklmnopqrstuvwxyz' capitalletters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' index_small = Columns 1 through 30 0 8 5 0 17 21 9 3 11 0 2 18 15 23 14 0 6 15 24 0 10 21 13 16 5 4 0 15 22 5 Columns 31 through 42 18 0 1 0 12 1 26 25 0 4 15 7 index_capital = Columns 1 through 30 20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 index = Columns 1 through 30 0 8 5 0 17 21 9 3 11 0 2 18 15 23 14 0 6 15 24 0 10 21 13 16 5 4 0 15 22 5 Columns 31 through 60 18 0 1 0 12 1 26 25 0 4 15 7 20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 84 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 index_unique = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 20 21 22 23 24 25 26 index_unique = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 20 21 22 23 24 25 26 array_check = 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))

smallletters = 'abcdefghijklmnopqrstuvwxyz' capitalletters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' index_small = Columns 1 through 30 0 1 3 11 0 13 25 0 2 15 24 0 23 9 20 8 0 6 9 22 5 0 4 15 26 5 14 0 12 9 Columns 31 through 39 17 21 15 18 0 10 21 7 19 index_capital = Columns 1 through 30 16 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 39 0 0 0 0 0 0 0 0 0 index = Columns 1 through 30 0 1 3 11 0 13 25 0 2 15 24 0 23 9 20 8 0 6 9 22 5 0 4 15 26 5 14 0 12 9 Columns 31 through 60 17 21 15 18 0 10 21 7 19 16 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 78 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 index_unique = 0 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 index_unique = 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 array_check = 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))

smallletters = 'abcdefghijklmnopqrstuvwxyz' capitalletters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' index_small = Columns 1 through 30 0 1 3 11 0 13 25 0 2 15 24 0 23 9 20 8 0 6 15 21 18 0 4 15 26 5 14 0 12 9 Columns 31 through 39 17 21 15 18 0 10 21 7 19 index_capital = Columns 1 through 30 16 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 39 0 0 0 0 0 0 0 0 0 index = Columns 1 through 30 0 1 3 11 0 13 25 0 2 15 24 0 23 9 20 8 0 6 15 21 18 0 4 15 26 5 14 0 12 9 Columns 31 through 60 17 21 15 18 0 10 21 7 19 16 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 78 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 index_unique = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 index_unique = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 array_check = 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))

smallletters = 'abcdefghijklmnopqrstuvwxyz' capitalletters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' index_small = Columns 1 through 30 0 16 8 9 14 24 0 15 6 0 2 12 1 3 11 0 17 21 1 18 20 26 0 0 10 21 4 7 5 0 Columns 31 through 36 13 25 0 22 15 23 index_capital = Columns 1 through 30 19 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 36 0 0 0 0 0 0 index = Columns 1 through 30 0 16 8 9 14 24 0 15 6 0 2 12 1 3 11 0 17 21 1 18 20 26 0 0 10 21 4 7 5 0 Columns 31 through 60 13 25 0 22 15 23 19 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 72 0 0 0 0 0 0 0 0 0 0 0 0 index_unique = 0 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 index_unique = 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 array_check = 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))

smallletters = 'abcdefghijklmnopqrstuvwxyz' capitalletters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' index_small = Columns 1 through 30 0 16 8 9 14 24 0 15 6 0 2 12 1 3 11 0 15 14 25 24 0 0 10 21 4 7 5 0 13 25 Columns 31 through 34 0 22 15 23 index_capital = Columns 1 through 30 19 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 34 0 0 0 0 index = Columns 1 through 30 0 16 8 9 14 24 0 15 6 0 2 12 1 3 11 0 15 14 25 24 0 0 10 21 4 7 5 0 13 25 Columns 31 through 60 0 22 15 23 19 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 68 0 0 0 0 0 0 0 0 index_unique = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 19 21 22 23 24 25 index_unique = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 19 21 22 23 24 25 array_check = 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))

smallletters = 'abcdefghijklmnopqrstuvwxyz' capitalletters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' index_small = Columns 1 through 30 0 15 14 4 5 18 6 21 12 0 23 1 20 5 18 13 5 12 15 14 0 0 2 18 9 14 7 5 18 0 Columns 31 through 38 15 6 0 12 9 6 5 0 index_capital = Columns 1 through 30 23 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 38 0 0 0 0 0 0 0 0 index = Columns 1 through 30 0 15 14 4 5 18 6 21 12 0 23 1 20 5 18 13 5 12 15 14 0 0 2 18 9 14 7 5 18 0 Columns 31 through 60 15 6 0 12 9 6 5 0 23 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 76 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 index_unique = 0 1 2 4 5 6 7 9 12 13 14 15 18 20 21 23 index_unique = 1 2 4 5 6 7 9 12 13 14 15 18 20 21 23 array_check = 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))

smallletters = 'abcdefghijklmnopqrstuvwxyz' capitalletters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' index_small = Columns 1 through 30 0 1 19 20 1 18 4 12 25 0 4 21 13 16 12 9 14 7 0 0 8 1 18 2 9 14 7 5 18 0 Columns 31 through 38 15 6 0 4 15 15 13 0 index_capital = Columns 1 through 30 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 38 0 0 0 0 0 0 0 0 index = Columns 1 through 30 0 1 19 20 1 18 4 12 25 0 4 21 13 16 12 9 14 7 0 0 8 1 18 2 9 14 7 5 18 0 Columns 31 through 60 15 6 0 4 15 15 13 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 76 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 index_unique = 0 1 2 4 5 6 7 8 9 12 13 14 15 16 18 19 20 21 25 index_unique = 1 2 4 5 6 7 8 9 12 13 14 15 16 18 19 20 21 25 array_check = 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))

smallletters = 'abcdefghijklmnopqrstuvwxyz' capitalletters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' index_small = 0 2 3 0 0 0 0 7 0 9 0 0 12 0 13 13 15 0 0 18 19 20 21 0 0 0 24 25 26 index_capital = 1 0 0 4 5 0 6 0 8 0 10 11 0 0 0 0 0 16 17 0 0 0 0 22 0 23 0 0 0 index = Columns 1 through 30 0 2 3 0 0 0 0 7 0 9 0 0 12 0 13 13 15 0 0 18 19 20 21 0 0 0 24 25 26 1 Columns 31 through 58 0 0 4 5 0 6 0 8 0 10 11 0 0 0 0 0 16 17 0 0 0 0 22 0 23 0 0 0 index_unique = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 15 16 17 18 19 20 21 22 23 24 25 26 index_unique = 1 2 3 4 5 6 7 8 9 10 11 12 13 15 16 17 18 19 20 21 22 23 24 25 26 array_check = 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))

smallletters = 'abcdefghijklmnopqrstuvwxyz' capitalletters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' index_small = Columns 1 through 30 0 9 20 8 0 17 21 9 26 0 7 1 13 5 0 0 15 4 25 0 6 15 18 0 0 0 0 0 0 0 Columns 31 through 53 0 0 5 24 16 5 3 20 0 16 5 18 22 5 18 19 5 0 10 21 14 11 0 index_capital = Columns 1 through 30 23 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 13 1 20 12 1 2 Columns 31 through 53 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 index = Columns 1 through 30 0 9 20 8 0 17 21 9 26 0 7 1 13 5 0 0 15 4 25 0 6 15 18 0 0 0 0 0 0 0 Columns 31 through 60 0 0 5 24 16 5 3 20 0 16 5 18 22 5 18 19 5 0 10 21 14 11 0 23 0 0 0 0 0 0 Columns 61 through 90 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 13 1 20 12 1 2 0 0 0 0 0 0 0 Columns 91 through 106 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 index_unique = 0 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 index_unique = 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 array_check = 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))

smallletters = 'abcdefghijklmnopqrstuvwxyz' capitalletters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' index_small = Columns 1 through 30 0 21 14 3 20 21 1 20 9 15 14 0 13 1 18 11 19 0 12 9 11 5 0 0 0 0 0 0 0 0 Columns 31 through 60 0 0 0 0 0 0 0 0 23 8 5 14 0 21 19 5 4 0 9 14 0 3 1 18 20 15 15 14 19 0 Columns 61 through 90 20 15 0 19 20 1 14 4 0 9 14 0 6 15 18 0 19 23 5 1 18 9 14 7 0 0 1 18 5 0 Columns 91 through 107 3 1 12 12 5 4 0 0 7 18 1 23 12 9 24 0 0 index_capital = Columns 1 through 30 16 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 index = Columns 1 through 30 0 21 14 3 20 21 1 20 9 15 14 0 13 1 18 11 19 0 12 9 11 5 0 0 0 0 0 0 0 0 Columns 31 through 60 0 0 0 0 0 0 0 0 23 8 5 14 0 21 19 5 4 0 9 14 0 3 1 18 20 15 15 14 19 0 Columns 61 through 90 20 15 0 19 20 1 14 4 0 9 14 0 6 15 18 0 19 23 5 1 18 9 14 7 0 0 1 18 5 0 Columns 91 through 120 3 1 12 12 5 4 0 0 7 18 1 23 12 9 24 0 0 16 0 0 0 0 0 0 0 0 0 0 0 0 Columns 121 through 150 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 151 through 180 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 181 through 210 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 211 through 214 0 0 0 0 index_unique = 0 1 3 4 5 6 7 8 9 11 12 13 14 15 16 18 19 20 21 23 24 index_unique = 1 3 4 5 6 7 8 9 11 12 13 14 15 16 18 19 20 21 23 24 array_check = 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

Suggested Problems

More from this Author95