Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
s = 'Trick-or-treating is a customary celebration for children on Halloween';
q= 'trick'
y_correct = true;
assert(isequal(CheckString(s,q),y_correct))
q =
'trick'
ans =
logical
1
|
2 | Pass |
s = 'Trick-or-treating is a customary celebration for children on Halloween';
q= 'trick-Or'
y_correct = true;
assert(isequal(CheckString(s,q),y_correct))
q =
'trick-Or'
ans =
logical
1
|
3 | Pass |
s = 'Trick-or-treating is a customary celebration for children on Halloween';
q= 'trick--or'
y_correct = false;
assert(isequal(CheckString(s,q),y_correct))
q =
'trick--or'
ans =
logical
0
|
4 | Pass |
s = 'Haunted attractions are entertainment venues designed to thrill and scare patrons.';
q= 'Hello'
y_correct = false;
assert(isequal(CheckString(s,q),y_correct))
q =
'Hello'
ans =
logical
0
|
Find the two most distant points
1237 Solvers
Find the peak 3n+1 sequence value
792 Solvers
2283 Solvers
190 Solvers
200 Solvers