Cody

# Problem 27. Pangrams!

Solution 2055537

Submitted on 12 Dec 2019 by Pauli Huusari
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))

loydetyt = 't' loydetyt = 'th' loydetyt = 'the' loydetyt = 'theq' loydetyt = 'thequ' loydetyt = 'thequi' loydetyt = 'thequic' loydetyt = 'thequick' loydetyt = 'thequickb' loydetyt = 'thequickbr' loydetyt = 'thequickbro' loydetyt = 'thequickbrow' loydetyt = 'thequickbrown' loydetyt = 'thequickbrownf' loydetyt = 'thequickbrownfx' loydetyt = 'thequickbrownfxj' loydetyt = 'thequickbrownfxjm' loydetyt = 'thequickbrownfxjmp' loydetyt = 'thequickbrownfxjmps' loydetyt = 'thequickbrownfxjmpsv' loydetyt = 'thequickbrownfxjmpsva' loydetyt = 'thequickbrownfxjmpsval' loydetyt = 'thequickbrownfxjmpsvalz' loydetyt = 'thequickbrownfxjmpsvalzy' loydetyt = 'thequickbrownfxjmpsvalzyd' loydetyt = 'thequickbrownfxjmpsvalzydg'

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

loydetyt = 't' loydetyt = 'th' loydetyt = 'the' loydetyt = 'theq' loydetyt = 'thequ' loydetyt = 'thequi' loydetyt = 'thequic' loydetyt = 'thequick' loydetyt = 'thequickb' loydetyt = 'thequickbr' loydetyt = 'thequickbro' loydetyt = 'thequickbrow' loydetyt = 'thequickbrown' loydetyt = 'thequickbrownf' loydetyt = 'thequickbrownfx' loydetyt = 'thequickbrownfxj' loydetyt = 'thequickbrownfxjm' loydetyt = 'thequickbrownfxjmp' loydetyt = 'thequickbrownfxjmpd' loydetyt = 'thequickbrownfxjmpdv' loydetyt = 'thequickbrownfxjmpdva' loydetyt = 'thequickbrownfxjmpdval' loydetyt = 'thequickbrownfxjmpdvalz' loydetyt = 'thequickbrownfxjmpdvalzy' loydetyt = 'thequickbrownfxjmpdvalzyg'

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

loydetyt = 'p' loydetyt = 'pa' loydetyt = 'pac' loydetyt = 'pack' loydetyt = 'packm' loydetyt = 'packmy' loydetyt = 'packmyb' loydetyt = 'packmybo' loydetyt = 'packmybox' loydetyt = 'packmyboxw' loydetyt = 'packmyboxwi' loydetyt = 'packmyboxwit' loydetyt = 'packmyboxwith' loydetyt = 'packmyboxwithf' loydetyt = 'packmyboxwithfv' loydetyt = 'packmyboxwithfve' loydetyt = 'packmyboxwithfved' loydetyt = 'packmyboxwithfvedz' loydetyt = 'packmyboxwithfvedzn' loydetyt = 'packmyboxwithfvedznl' loydetyt = 'packmyboxwithfvedznlq' loydetyt = 'packmyboxwithfvedznlqu' loydetyt = 'packmyboxwithfvedznlqur' loydetyt = 'packmyboxwithfvedznlqurj' loydetyt = 'packmyboxwithfvedznlqurjg' loydetyt = 'packmyboxwithfvedznlqurjgs'

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

loydetyt = 'p' loydetyt = 'pa' loydetyt = 'pac' loydetyt = 'pack' loydetyt = 'packm' loydetyt = 'packmy' loydetyt = 'packmyb' loydetyt = 'packmybo' loydetyt = 'packmybox' loydetyt = 'packmyboxw' loydetyt = 'packmyboxwi' loydetyt = 'packmyboxwit' loydetyt = 'packmyboxwith' loydetyt = 'packmyboxwithf' loydetyt = 'packmyboxwithfu' loydetyt = 'packmyboxwithfur' loydetyt = 'packmyboxwithfurd' loydetyt = 'packmyboxwithfurdz' loydetyt = 'packmyboxwithfurdze' loydetyt = 'packmyboxwithfurdzen' loydetyt = 'packmyboxwithfurdzenl' loydetyt = 'packmyboxwithfurdzenlq' loydetyt = 'packmyboxwithfurdzenlqj' loydetyt = 'packmyboxwithfurdzenlqjg' loydetyt = 'packmyboxwithfurdzenlqjgs'

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

loydetyt = 's' loydetyt = 'sp' loydetyt = 'sph' loydetyt = 'sphi' loydetyt = 'sphin' loydetyt = 'sphinx' loydetyt = 'sphinxo' loydetyt = 'sphinxof' loydetyt = 'sphinxofb' loydetyt = 'sphinxofbl' loydetyt = 'sphinxofbla' loydetyt = 'sphinxofblac' loydetyt = 'sphinxofblack' loydetyt = 'sphinxofblackq' loydetyt = 'sphinxofblackqu' loydetyt = 'sphinxofblackqur' loydetyt = 'sphinxofblackqurt' loydetyt = 'sphinxofblackqurtz' loydetyt = 'sphinxofblackqurtzj' loydetyt = 'sphinxofblackqurtzjd' loydetyt = 'sphinxofblackqurtzjdg' loydetyt = 'sphinxofblackqurtzjdge' loydetyt = 'sphinxofblackqurtzjdgem' loydetyt = 'sphinxofblackqurtzjdgemy' loydetyt = 'sphinxofblackqurtzjdgemyv' loydetyt = 'sphinxofblackqurtzjdgemyvw'

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

loydetyt = 's' loydetyt = 'sp' loydetyt = 'sph' loydetyt = 'sphi' loydetyt = 'sphin' loydetyt = 'sphinx' loydetyt = 'sphinxo' loydetyt = 'sphinxof' loydetyt = 'sphinxofb' loydetyt = 'sphinxofbl' loydetyt = 'sphinxofbla' loydetyt = 'sphinxofblac' loydetyt = 'sphinxofblack' loydetyt = 'sphinxofblacky' loydetyt = 'sphinxofblackyj' loydetyt = 'sphinxofblackyju' loydetyt = 'sphinxofblackyjud' loydetyt = 'sphinxofblackyjudg' loydetyt = 'sphinxofblackyjudge' loydetyt = 'sphinxofblackyjudgem' loydetyt = 'sphinxofblackyjudgemv' loydetyt = 'sphinxofblackyjudgemvw'

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

loydetyt = 'w' loydetyt = 'wo' loydetyt = 'won' loydetyt = 'wond' loydetyt = 'wonde' loydetyt = 'wonder' loydetyt = 'wonderf' loydetyt = 'wonderfu' loydetyt = 'wonderful' loydetyt = 'wonderfula' loydetyt = 'wonderfulat' loydetyt = 'wonderfulatm' loydetyt = 'wonderfulatmb' loydetyt = 'wonderfulatmbi' loydetyt = 'wonderfulatmbig'

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

loydetyt = 'd' loydetyt = 'da' loydetyt = 'das' loydetyt = 'dast' loydetyt = 'dastr' loydetyt = 'dastrl' loydetyt = 'dastrly' loydetyt = 'dastrlyu' loydetyt = 'dastrlyum' loydetyt = 'dastrlyump' loydetyt = 'dastrlyumpi' loydetyt = 'dastrlyumpin' loydetyt = 'dastrlyumping' loydetyt = 'dastrlyumpingh' loydetyt = 'dastrlyumpinghb' loydetyt = 'dastrlyumpinghbe' loydetyt = 'dastrlyumpinghbeo' loydetyt = 'dastrlyumpinghbeof'

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

loydetyt = 'a' loydetyt = 'ab' loydetyt = 'abc' loydetyt = 'abcd' loydetyt = 'abcde' loydetyt = 'abcdef' loydetyt = 'abcdefg' loydetyt = 'abcdefgh' loydetyt = 'abcdefghi' loydetyt = 'abcdefghij' loydetyt = 'abcdefghijk' loydetyt = 'abcdefghijkl' loydetyt = 'abcdefghijklm' loydetyt = 'abcdefghijklmo' loydetyt = 'abcdefghijklmop' loydetyt = 'abcdefghijklmopq' loydetyt = 'abcdefghijklmopqr' loydetyt = 'abcdefghijklmopqrs' loydetyt = 'abcdefghijklmopqrst' loydetyt = 'abcdefghijklmopqrstu' loydetyt = 'abcdefghijklmopqrstuv' loydetyt = 'abcdefghijklmopqrstuvw' loydetyt = 'abcdefghijklmopqrstuvwx' loydetyt = 'abcdefghijklmopqrstuvwxy' loydetyt = 'abcdefghijklmopqrstuvwxyz'

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

loydetyt = 'w' loydetyt = 'wi' loydetyt = 'wit' loydetyt = 'with' loydetyt = 'withq' loydetyt = 'withqu' loydetyt = 'withquz' loydetyt = 'withquzg' loydetyt = 'withquzga' loydetyt = 'withquzgam' loydetyt = 'withquzgame' loydetyt = 'withquzgamec' loydetyt = 'withquzgameco' loydetyt = 'withquzgamecod' loydetyt = 'withquzgamecody' loydetyt = 'withquzgamecodyf' loydetyt = 'withquzgamecodyfr' loydetyt = 'withquzgamecodyfrl' loydetyt = 'withquzgamecodyfrlb' loydetyt = 'withquzgamecodyfrlbx' loydetyt = 'withquzgamecodyfrlbxp' loydetyt = 'withquzgamecodyfrlbxpv' loydetyt = 'withquzgamecodyfrlbxpvs' loydetyt = 'withquzgamecodyfrlbxpvsj' loydetyt = 'withquzgamecodyfrlbxpvsjn' loydetyt = 'withquzgamecodyfrlbxpvsjnk'

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

loydetyt = 'p' loydetyt = 'pu' loydetyt = 'pun' loydetyt = 'punc' loydetyt = 'punct' loydetyt = 'puncta' loydetyt = 'punctai' loydetyt = 'punctaio' loydetyt = 'punctaiom' loydetyt = 'punctaiomr' loydetyt = 'punctaiomrk' loydetyt = 'punctaiomrks' loydetyt = 'punctaiomrksl' loydetyt = 'punctaiomrksle' loydetyt = 'punctaiomrkslew' loydetyt = 'punctaiomrkslewh' loydetyt = 'punctaiomrkslewhd' loydetyt = 'punctaiomrkslewhdf' loydetyt = 'punctaiomrkslewhdfg' loydetyt = 'punctaiomrkslewhdfgx'