Cody

# Problem 27. Pangrams!

Solution 1234921

Submitted on 20 Jul 2017
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   Fail
x = 'The quick brown fox jumps over a lazy dog'; y_correct = true; assert(isequal(isPangram(x),y_correct))

alpha = ' bcdefghijklmnopqrstuvwxyz' alpha = ' cdefghijklmnopqrstuvwxyz' alpha = ' defghijklmnopqrstuvwxyz' alpha = ' efghijklmnopqrstuvwxyz' alpha = ' fghijklmnopqrstuvwxyz' alpha = ' ghijklmnopqrstuvwxyz' alpha = ' hijklmnopqrstuvwxyz' alpha = ' ijklmnopqrstuvwxyz' alpha = ' jklmnopqrstuvwxyz' alpha = ' klmnopqrstuvwxyz' alpha = ' lmnopqrstuvwxyz' alpha = ' mnopqrstuvwxyz' alpha = ' nopqrstuvwxyz' alpha = ' opqrstuvwxyz' alpha = ' pqrstuvwxyz' alpha = ' qrstuvwxyz' alpha = ' rstuvwxyz' alpha = ' stuvwxyz' alpha = ' tuvwxyz' alpha = ' uvwxyz' alpha = ' vwxyz' alpha = ' wxyz' alpha = ' xyz' alpha = ' yz' alpha = ' z' alpha = ' ' tf = logical 0

Assertion failed.

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

alpha = ' bcdefghijklmnopqrstuvwxyz' alpha = ' cdefghijklmnopqrstuvwxyz' alpha = ' defghijklmnopqrstuvwxyz' alpha = ' efghijklmnopqrstuvwxyz' alpha = ' fghijklmnopqrstuvwxyz' alpha = ' ghijklmnopqrstuvwxyz' alpha = ' hijklmnopqrstuvwxyz' alpha = ' ijklmnopqrstuvwxyz' alpha = ' jklmnopqrstuvwxyz' alpha = ' klmnopqrstuvwxyz' alpha = ' lmnopqrstuvwxyz' alpha = ' mnopqrstuvwxyz' alpha = ' nopqrstuvwxyz' alpha = ' opqrstuvwxyz' alpha = ' pqrstuvwxyz' alpha = ' qrstuvwxyz' alpha = ' rstuvwxyz' alpha = ' stuvwxyz' alpha = ' s uvwxyz' alpha = ' s vwxyz' alpha = ' s wxyz' alpha = ' s xyz' alpha = ' s yz' alpha = ' s z' alpha = ' s ' tf = logical 0

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

alpha = ' bcdefghijklmnopqrstuvwxyz' alpha = ' cdefghijklmnopqrstuvwxyz' alpha = ' defghijklmnopqrstuvwxyz' alpha = ' efghijklmnopqrstuvwxyz' alpha = ' fghijklmnopqrstuvwxyz' alpha = ' ghijklmnopqrstuvwxyz' alpha = ' hijklmnopqrstuvwxyz' alpha = ' ijklmnopqrstuvwxyz' alpha = ' jklmnopqrstuvwxyz' alpha = ' klmnopqrstuvwxyz' alpha = ' lmnopqrstuvwxyz' alpha = ' mnopqrstuvwxyz' alpha = ' nopqrstuvwxyz' alpha = ' opqrstuvwxyz' alpha = ' pqrstuvwxyz' alpha = ' qrstuvwxyz' alpha = ' rstuvwxyz' alpha = ' stuvwxyz' alpha = ' tuvwxyz' alpha = ' uvwxyz' alpha = ' vwxyz' alpha = ' wxyz' alpha = ' xyz' alpha = ' yz' alpha = ' z' alpha = ' ' tf = logical 0

Assertion failed.

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

alpha = ' bcdefghijklmnopqrstuvwxyz' alpha = ' cdefghijklmnopqrstuvwxyz' alpha = ' defghijklmnopqrstuvwxyz' alpha = ' efghijklmnopqrstuvwxyz' alpha = ' fghijklmnopqrstuvwxyz' alpha = ' ghijklmnopqrstuvwxyz' alpha = ' hijklmnopqrstuvwxyz' alpha = ' ijklmnopqrstuvwxyz' alpha = ' jklmnopqrstuvwxyz' alpha = ' klmnopqrstuvwxyz' alpha = ' lmnopqrstuvwxyz' alpha = ' mnopqrstuvwxyz' alpha = ' nopqrstuvwxyz' alpha = ' opqrstuvwxyz' alpha = ' pqrstuvwxyz' alpha = ' qrstuvwxyz' alpha = ' rstuvwxyz' alpha = ' stuvwxyz' alpha = ' tuvwxyz' alpha = ' uvwxyz' alpha = ' vwxyz' alpha = ' v xyz' alpha = ' v yz' alpha = ' v z' alpha = ' v ' tf = logical 0

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

alpha = ' bcdefghijklmnopqrstuvwxyz' alpha = ' cdefghijklmnopqrstuvwxyz' alpha = ' defghijklmnopqrstuvwxyz' alpha = ' efghijklmnopqrstuvwxyz' alpha = ' fghijklmnopqrstuvwxyz' alpha = ' ghijklmnopqrstuvwxyz' alpha = ' hijklmnopqrstuvwxyz' alpha = ' ijklmnopqrstuvwxyz' alpha = ' jklmnopqrstuvwxyz' alpha = ' klmnopqrstuvwxyz' alpha = ' lmnopqrstuvwxyz' alpha = ' mnopqrstuvwxyz' alpha = ' nopqrstuvwxyz' alpha = ' opqrstuvwxyz' alpha = ' pqrstuvwxyz' alpha = ' qrstuvwxyz' alpha = ' rstuvwxyz' alpha = ' stuvwxyz' alpha = ' tuvwxyz' alpha = ' uvwxyz' alpha = ' vwxyz' alpha = ' wxyz' alpha = ' xyz' alpha = ' yz' alpha = ' z' alpha = ' ' tf = logical 0

Assertion failed.

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

alpha = ' bcdefghijklmnopqrstuvwxyz' alpha = ' cdefghijklmnopqrstuvwxyz' alpha = ' defghijklmnopqrstuvwxyz' alpha = ' efghijklmnopqrstuvwxyz' alpha = ' fghijklmnopqrstuvwxyz' alpha = ' ghijklmnopqrstuvwxyz' alpha = ' hijklmnopqrstuvwxyz' alpha = ' ijklmnopqrstuvwxyz' alpha = ' jklmnopqrstuvwxyz' alpha = ' klmnopqrstuvwxyz' alpha = ' lmnopqrstuvwxyz' alpha = ' mnopqrstuvwxyz' alpha = ' nopqrstuvwxyz' alpha = ' opqrstuvwxyz' alpha = ' pqrstuvwxyz' alpha = ' qrstuvwxyz' alpha = ' qr tuvwxyz' alpha = ' qr t vwxyz' alpha = ' qr t wxyz' alpha = ' qr t xyz' alpha = ' qr t yz' alpha = ' qr t z' tf = logical 0

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

alpha = ' bcdefghijklmnopqrstuvwxyz' alpha = ' cdefghijklmnopqrstuvwxyz' alpha = ' c efghijklmnopqrstuvwxyz' alpha = ' c fghijklmnopqrstuvwxyz' alpha = ' c ghijklmnopqrstuvwxyz' alpha = ' c hijklmnopqrstuvwxyz' alpha = ' c h jklmnopqrstuvwxyz' alpha = ' c h jk mnopqrstuvwxyz' alpha = ' c h jk nopqrstuvwxyz' alpha = ' c h jk opqrstuvwxyz' alpha = ' c h jk pqrstuvwxyz' alpha = ' c h jk pq stuvwxyz' alpha = ' c h jk pq s uvwxyz' alpha = ' c h jk pq s vwxyz' alpha = ' c h jk pq s v xyz' tf = logical 0

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

alpha = ' bcdefghijklmnopqrstuvwxyz' alpha = ' cdefghijklmnopqrstuvwxyz' alpha = ' c efghijklmnopqrstuvwxyz' alpha = ' c fghijklmnopqrstuvwxyz' alpha = ' c ghijklmnopqrstuvwxyz' alpha = ' c hijklmnopqrstuvwxyz' alpha = ' c ijklmnopqrstuvwxyz' alpha = ' c jklmnopqrstuvwxyz' alpha = ' c jk mnopqrstuvwxyz' alpha = ' c jk nopqrstuvwxyz' alpha = ' c jk opqrstuvwxyz' alpha = ' c jk pqrstuvwxyz' alpha = ' c jk qrstuvwxyz' alpha = ' c jk q stuvwxyz' alpha = ' c jk q tuvwxyz' alpha = ' c jk q uvwxyz' alpha = ' c jk q vwxyz' alpha = ' c jk q vwx z' tf = logical 0

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

alpha = ' bcdefghijklmnopqrstuvwxyz' alpha = ' cdefghijklmnopqrstuvwxyz' alpha = ' defghijklmnopqrstuvwxyz' alpha = ' efghijklmnopqrstuvwxyz' alpha = ' fghijklmnopqrstuvwxyz' alpha = ' ghijklmnopqrstuvwxyz' alpha = ' hijklmnopqrstuvwxyz' alpha = ' ijklmnopqrstuvwxyz' alpha = ' jklmnopqrstuvwxyz' alpha = ' klmnopqrstuvwxyz' alpha = ' lmnopqrstuvwxyz' alpha = ' mnopqrstuvwxyz' alpha = ' nopqrstuvwxyz' alpha = ' n pqrstuvwxyz' alpha = ' n qrstuvwxyz' alpha = ' n rstuvwxyz' alpha = ' n stuvwxyz' alpha = ' n tuvwxyz' alpha = ' n uvwxyz' alpha = ' n vwxyz' alpha = ' n wxyz' alpha = ' n xyz' alpha = ' n yz' alpha = ' n z' alpha = ' n ' tf = logical 0

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

alpha = ' bcdefghijklmnopqrstuvwxyz' alpha = ' cdefghijklmnopqrstuvwxyz' alpha = ' defghijklmnopqrstuvwxyz' alpha = ' efghijklmnopqrstuvwxyz' alpha = ' fghijklmnopqrstuvwxyz' alpha = ' ghijklmnopqrstuvwxyz' alpha = ' hijklmnopqrstuvwxyz' alpha = ' ijklmnopqrstuvwxyz' alpha = ' jklmnopqrstuvwxyz' alpha = ' klmnopqrstuvwxyz' alpha = ' lmnopqrstuvwxyz' alpha = ' mnopqrstuvwxyz' alpha = ' nopqrstuvwxyz' alpha = ' opqrstuvwxyz' alpha = ' pqrstuvwxyz' alpha = ' qrstuvwxyz' alpha = ' rstuvwxyz' alpha = ' stuvwxyz' alpha = ' tuvwxyz' alpha = ' uvwxyz' alpha = ' vwxyz' alpha = ' wxyz' alpha = ' xyz' alpha = ' yz' alpha = ' z' alpha = ' ' tf = logical 0

Assertion failed.

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

alpha = ' bcdefghijklmnopqrstuvwxyz' alpha = ' b defghijklmnopqrstuvwxyz' alpha = ' b efghijklmnopqrstuvwxyz' alpha = ' b fghijklmnopqrstuvwxyz' alpha = ' b ghijklmnopqrstuvwxyz' alpha = ' b hijklmnopqrstuvwxyz' alpha = ' b ijklmnopqrstuvwxyz' alpha = ' b jklmnopqrstuvwxyz' alpha = ' b j lmnopqrstuvwxyz' alpha = ' b j mnopqrstuvwxyz' alpha = ' b j nopqrstuvwxyz' alpha = ' b j opqrstuvwxyz' alpha = ' b j pqrstuvwxyz' alpha = ' b j qrstuvwxyz' alpha = ' b j q stuvwxyz' alpha = ' b j q tuvwxyz' alpha = ' b j q uvwxyz' alpha = ' b j q vwxyz' alpha = ' b j q v xyz' alpha = ' b j q v yz' tf = logical 0