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))
A =
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
p =
1×41 logical array
1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 0 1 1 1 0 1 1 1 1 1 0 1 1 1 1 0 1 0 1 1 1 1 0 1 1 1
q =
Columns 1 through 30
46 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
q =
Columns 1 through 30
46 8 5 17 21 9 3 11 2 18 15 23 14 6 15 24 10 21 13 16 19 15 22 5 18 1 12 1 26 25
Columns 31 through 33
4 15 7
q =
Columns 1 through 30
1 1 2 3 4 5 5 6 7 8 9 10 11 12 13 14 15 15 15 15 16 17 18 18 19 21 21 22 23 24
Columns 31 through 33
25 26 46
q =
Columns 1 through 30
1 1 2 3 4 5 5 6 7 8 9 10 11 12 13 14 15 15 15 15 16 17 18 18 19 21 21 22 23 24
Columns 31 through 33
25 26 20
q =
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))
A =
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
p =
1×42 logical array
1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 0 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 0 1 0 1 1 1 1 0 1 1 1
q =
Columns 1 through 30
46 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
q =
Columns 1 through 30
46 8 5 17 21 9 3 11 2 18 15 23 14 6 15 24 10 21 13 16 5 4 15 22 5 18 1 12 1 26
Columns 31 through 34
25 4 15 7
q =
Columns 1 through 30
1 1 2 3 4 4 5 5 5 6 7 8 9 10 11 12 13 14 15 15 15 15 16 17 18 18 21 21 22 23
Columns 31 through 34
24 25 26 46
q =
Columns 1 through 30
1 1 2 3 4 4 5 5 5 6 7 8 9 10 11 12 13 14 15 15 15 15 16 17 18 18 21 21 22 23
Columns 31 through 34
24 25 26 20
q =
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
tf =
logical
0
|
3 | Pass |
x = 'Pack my box with five dozen liquor jugs';
y_correct = true;
assert(isequal(isPangram(x),y_correct))
A =
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
p =
1×39 logical array
1 1 1 1 0 1 1 0 1 1 1 0 1 1 1 1 0 1 1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1
q =
Columns 1 through 30
42 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
q =
Columns 1 through 30
42 1 3 11 13 25 2 15 24 23 9 20 8 6 9 22 5 4 15 26 5 14 12 9 17 21 15 18 10 21
Columns 31 through 32
7 19
q =
Columns 1 through 30
1 2 3 4 5 5 6 7 8 9 9 9 10 11 12 13 14 15 15 15 17 18 19 20 21 21 22 23 24 25
Columns 31 through 32
26 42
q =
Columns 1 through 30
1 2 3 4 5 5 6 7 8 9 9 9 10 11 12 13 14 15 15 15 17 18 19 20 21 21 22 23 24 25
Columns 31 through 32
26 16
q =
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))
A =
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
p =
1×39 logical array
1 1 1 1 0 1 1 0 1 1 1 0 1 1 1 1 0 1 1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1
q =
Columns 1 through 30
42 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
q =
Columns 1 through 30
42 1 3 11 13 25 2 15 24 23 9 20 8 6 15 21 18 4 15 26 5 14 12 9 17 21 15 18 10 21
Columns 31 through 32
7 19
q =
Columns 1 through 30
1 2 3 4 5 6 7 8 9 9 10 11 12 13 14 15 15 15 15 17 18 18 19 20 21 21 21 23 24 25
Columns 31 through 32
26 42
q =
Columns 1 through 30
1 2 3 4 5 6 7 8 9 9 10 11 12 13 14 15 15 15 15 17 18 18 19 20 21 21 21 23 24 25
Columns 31 through 32
26 16
q =
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
tf =
logical
0
|
5 | Pass |
x = 'Sphinx of black quartz, judge my vow';
y_correct = true;
assert(isequal(isPangram(x),y_correct))
A =
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
p =
1×36 logical array
1 1 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 1 1 1 1 1 0 0 1 1 1 1 1 0 1 1 0 1 1 1
q =
Columns 1 through 30
45 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
q =
45 16 8 9 14 24 15 6 2 12 1 3 11 17 21 1 18 20 26 10 21 4 7 5 13 25 22 15 23
q =
1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 15 16 17 18 20 21 21 22 23 24 25 26 45
q =
1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 15 16 17 18 20 21 21 22 23 24 25 26 19
q =
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))
A =
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
p =
1×34 logical array
1 1 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 1 1 1 0 0 1 1 1 1 1 0 1 1 0 1 1 1
q =
Columns 1 through 30
45 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
q =
45 16 8 9 14 24 15 6 2 12 1 3 11 15 14 25 24 10 21 4 7 5 13 25 22 15 23
q =
1 2 3 4 5 6 7 8 9 10 11 12 13 14 14 15 15 15 16 21 22 23 24 24 25 25 45
q =
1 2 3 4 5 6 7 8 9 10 11 12 13 14 14 15 15 15 16 21 22 23 24 24 25 25 19
q =
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 19 21 22 23 24 25
tf =
logical
0
|
7 | Pass |
x = 'Wonderful watermelon, bringer of life.';
y_correct = false;
assert(isequal(isPangram(x),y_correct))
A =
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
p =
1×38 logical array
1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 0
q =
Columns 1 through 30
49 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
q =
Columns 1 through 30
49 15 14 4 5 18 6 21 12 23 1 20 5 18 13 5 12 15 14 2 18 9 14 7 5 18 15 6 12 9
Columns 31 through 32
6 5
q =
Columns 1 through 30
1 2 4 5 5 5 5 5 6 6 6 7 9 9 12 12 12 13 14 14 14 15 15 15 18 18 18 18 20 21
Columns 31 through 32
23 49
q =
Columns 1 through 30
1 2 4 5 5 5 5 5 6 6 6 7 9 9 12 12 12 13 14 14 14 15 15 15 18 18 18 18 20 21
Columns 31 through 32
23 23
q =
1 2 4 5 6 7 9 12 13 14 15 18 20 21 23
tf =
logical
0
|
8 | Pass |
x = 'Dastardly dumpling, harbinger of doom!';
y_correct = false;
assert(isequal(isPangram(x),y_correct))
A =
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
p =
1×38 logical array
1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 0
q =
Columns 1 through 30
30 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
q =
Columns 1 through 30
30 1 19 20 1 18 4 12 25 4 21 13 16 12 9 14 7 8 1 18 2 9 14 7 5 18 15 6 4 15
Columns 31 through 32
15 13
q =
Columns 1 through 30
1 1 1 2 4 4 4 5 6 7 7 8 9 9 12 12 13 13 14 14 15 15 15 16 18 18 18 19 20 21
Columns 31 through 32
25 30
q =
Columns 1 through 30
1 1 1 2 4 4 4 5 6 7 7 8 9 9 12 12 13 13 14 14 15 15 15 16 18 18 18 19 20 21
Columns 31 through 32
25 4
q =
1 2 4 5 6 7 8 9 12 13 14 15 16 18 19 20 21 25
tf =
logical
0
|
9 | Pass |
x = 'AbcDE FgHiJKl mmoPQrstuV Wxyz';
y_correct = false;
assert(isequal(isPangram(x),y_correct))
A =
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
p =
1×29 logical array
1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1
q =
27 2 3 30 31 0 32 7 34 9 36 37 12 0 13 13 15 42 43 18 19 20 21 48 0 49 24 25 26
q =
27 2 3 30 31 32 7 34 9 36 37 12 13 13 15 42 43 18 19 20 21 48 49 24 25 26
q =
2 3 7 9 12 13 13 15 18 19 20 21 24 25 26 27 30 31 32 34 36 37 42 43 48 49
q =
2 3 7 9 12 13 13 15 18 19 20 21 24 25 26 1 4 5 6 8 10 11 16 17 22 23
q =
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
tf =
logical
0
|
10 | Pass |
x = 'With quiz game Cody for MATLAB, expect perverse junk.';
y_correct = true;
assert(isequal(isPangram(x),y_correct))
A =
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
p =
1×53 logical array
Columns 1 through 45
1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 1 1 1 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 0 1 1 1 1 1 1
Columns 46 through 53
1 1 0 1 1 1 1 0
q =
Columns 1 through 30
49 9 20 8 0 17 21 9 26 0 7 1 13 5 0 29 15 4 25 0 6 15 18 0 39 27 46 38 27 28
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
q =
Columns 1 through 30
49 9 20 8 17 21 9 26 7 1 13 5 29 15 4 25 6 15 18 39 27 46 38 27 28 5 24 16 5 3
Columns 31 through 43
20 16 5 18 22 5 18 19 5 10 21 14 11
q =
Columns 1 through 30
1 3 4 5 5 5 5 5 5 6 7 8 9 9 10 11 13 14 15 15 16 16 17 18 18 18 19 20 20 21
Columns 31 through 43
21 22 24 25 26 27 27 28 29 38 39 46 49
q =
Columns 1 through 30
1 3 4 5 5 5 5 5 5 6 7 8 9 9 10 11 13 14 15 15 16 16 17 18 18 18 19 20 20 21
Columns 31 through 43
21 22 24 25 26 1 1 2 3 12 13 20 23
q =
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))
A =
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
p =
1×107 logical array
Columns 1 through 45
1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 1 1
Columns 46 through 90
1 1 0 1 1 0 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 1 0 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 0
Columns 91 through 107
1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 0 0
q =
Columns 1 through 30
42 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
q =
Columns 1 through 30
42 21 14 3 20 21 1 20 9 15 14 13 1 18 11 19 12 9 11 5 23 8 5 14 21 19 5 4 9 14
Columns 31 through 60
3 1 18 20 15 15 14 19 20 15 19 20 1 14 4 9 14 6 15 18 19 23 5 1 18 9 14 7 1 18
Columns 61 through 74
5 3 1 12 12 5 4 7 18 1 23 12 9 24
q =
Columns 1 through 30
1 1 1 1 1 1 1 1 3 3 3 4 4 4 5 5 5 5 5 5 6 7 7 8 9 9 9 9 9 9
Columns 31 through 60
11 11 12 12 12 12 13 14 14 14 14 14 14 14 14 15 15 15 15 15 18 18 18 18 18 18 19 19 19 19
Columns 61 through 74
19 20 20 20 20 20 21 21 21 23 23 23 24 42
q =
Columns 1 through 30
1 1 1 1 1 1 1 1 3 3 3 4 4 4 5 5 5 5 5 5 6 7 7 8 9 9 9 9 9 9
Columns 31 through 60
11 11 12 12 12 12 13 14 14 14 14 14 14 14 14 15 15 15 15 15 18 18 18 18 18 18 19 19 19 19
Columns 61 through 74
19 20 20 20 20 20 21 21 21 23 23 23 24 16
q =
1 3 4 5 6 7 8 9 11 12 13 14 15 16 18 19 20 21 23 24
tf =
logical
0
|
Which values occur exactly three times?
3308 Solvers
Determine if a Given Number is a Triangle Number
286 Solvers
223 Solvers
Replace multiples of 5 with NaN
282 Solvers
Who is the smartest MATLAB programmer?
469 Solvers