Cody

Solution 2088735

Submitted on 11 Jan 2020 by ren yi xin ren
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))

n = 41 s = 'the quick brown fox jumps over a lazy dog' A = [] A = 4 A = 4 10 A = 4 10 16 A = 4 10 16 20 A = 4 10 16 20 26 A = 4 10 16 20 26 31 A = 4 10 16 20 26 31 33 A = 4 10 16 20 26 31 33 38 s = 'thequickbrownfoxjumpsoveralazydog' s = 'abcdefghijklmnopqrstuvwxyz'

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

n = 42 s = 'the quick brown fox jumped over a lazy dog' A = [] A = 4 A = 4 10 A = 4 10 16 A = 4 10 16 20 A = 4 10 16 20 27 A = 4 10 16 20 27 32 A = 4 10 16 20 27 32 34 A = 4 10 16 20 27 32 34 39 s = 'thequickbrownfoxjumpedoveralazydog' s = 'abcdefghijklmnopqrtuvwxyz'

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

n = 39 s = 'pack my box with five dozen liquor jugs' A = [] A = 5 A = 5 8 A = 5 8 12 A = 5 8 12 17 A = 5 8 12 17 22 A = 5 8 12 17 22 28 A = 5 8 12 17 22 28 35 s = 'packmyboxwithfivedozenliquorjugs' s = 'abcdefghijklmnopqrstuvwxyz'

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

n = 39 s = 'pack my box with four dozen liquor jugs' A = [] A = 5 A = 5 8 A = 5 8 12 A = 5 8 12 17 A = 5 8 12 17 22 A = 5 8 12 17 22 28 A = 5 8 12 17 22 28 35 s = 'packmyboxwithfourdozenliquorjugs' s = 'abcdefghijklmnopqrstuwxyz'

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

n = 36 s = 'sphinx of black quartz, judge my vow' A = [] A = 7 A = 7 10 A = 7 10 16 A = 7 10 16 23 A = 7 10 16 23 24 A = 7 10 16 23 24 30 A = 7 10 16 23 24 30 33 s = 'sphinxofblackquartzjudgemyvow' s = 'abcdefghijklmnopqrstuvwxyz'

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

n = 34 s = 'sphinx of black onyx, judge my vow' A = [] A = 7 A = 7 10 A = 7 10 16 A = 7 10 16 21 A = 7 10 16 21 22 A = 7 10 16 21 22 28 A = 7 10 16 21 22 28 31 s = 'sphinxofblackonyxjudgemyvow' s = 'abcdefghijklmnopsuvwxy'

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

n = 38 s = 'wonderful watermelon, bringer of life.' A = [] A = 10 A = 10 21 A = 10 21 22 A = 10 21 22 30 A = 10 21 22 30 33 A = 10 21 22 30 33 38 s = 'wonderfulwatermelonbringeroflife' s = 'abdefgilmnortuw'

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

n = 38 s = 'dastardly dumpling, harbinger of doom!' A = [] A = 10 A = 10 19 A = 10 19 20 A = 10 19 20 30 A = 10 19 20 30 33 A = 10 19 20 30 33 38 s = 'dastardlydumplingharbingerofdoom' s = 'abdefghilmnoprstuy'

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

n = 29 s = 'abcde fghijkl mmopqrstuv wxyz' A = [] A = 6 A = 6 14 A = 6 14 25 s = 'abcdefghijklmmopqrstuvwxyz' s = 'abcdefghijklmopqrstuvwxyz'

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

n = 53 s = 'with quiz game cody for matlab, expect perverse junk.' A = [] A = 5 A = 5 10 A = 5 10 15 A = 5 10 15 20 A = 5 10 15 20 24 A = 5 10 15 20 24 31 A = 5 10 15 20 24 31 32 A = 5 10 15 20 24 31 32 39 A = 5 10 15 20 24 31 32 39 48 A = 5 10 15 20 24 31 32 39 48 53 s = 'withquizgamecodyformatlabexpectperversejunk' s = 'abcdefghijklmnopqrstuvwxyz'

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

n = 107 s = 'punctuation marks like @#$%^</&>*?!!, when used in cartoons to stand in for swearing, are called "grawlix".' A = [] A = 12 A = 12 18 A = 12 18 23 A = 12 18 23 24 A = 12 18 23 24 25 A = 12 18 23 24 25 26 A = 12 18 23 24 25 26 27 A = 12 18 23 24 25 26 27 28 A = 12 18 23 24 25 26 27 28 29 A = 12 18 23 24 25 26 27 28 29 30 A = 12 18 23 24 25 26 27 28 29 30 31 A = 12 18 23 24 25 26 27 28 29 30 31 32 A = 12 18 23 24 25 26 27 28 29 30 31 32 33 A = 12 18 23 24 25 26 27 28 29 30 31 32 33 34 A = 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 A = 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 36 A = 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 A = 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 A = 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 43 A = 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 43 48 A = 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 43 48 51 A = 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 43 48 51 60 A = 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 43 48 51 60 63 A = 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 43 48 51 60 63 69 A = 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 43 48 51 60 63 69 72 A = 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 43 48 51 60 63 69 72 76 A = 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 43 48 51 60 63 69 72 76 85 A = 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 43 48 51 60 63 69 72 76 85 86 A = 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 43 48 51 60 63 69 72 76 85 86 90 A = 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 43 48 51 60 63 69 72 76 85 86 90 97 A = Columns 1 through 30 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 43 48 51 60 63 69 72 76 85 86 90 97 Column 31 98 A = Columns 1 through 30 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 43 48 51 60 63 69 72 76 85 86 90 97 Columns 31 through 32 98 106 A = Columns 1 through 30 12 18 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 43 48 51 60 63 69 72 76 85 86 90 97 Columns 31 through 33 98 106 107 s = 'punctuationmarkslikewhenusedincartoonstostandinforswearingarecalledgrawlix' s = 'acdefghiklmnoprstuwx'

Suggested Problems

More from this Author95