This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
t_correct = 1000;
c = cputime;
tic;
waitForMe(t_correct);
t = toc
e = cputime - c
assert( abs(t_correct - t*1000) <= 0.5 )
assert( e*1000 / t_correct <= 0.05 )
t =
1.0001
e =
0.0200
|
2 | Pass |
t_correct = 2000;
c = cputime;
tic;
waitForMe(t_correct);
t = toc
e = cputime - c
assert( abs(t_correct - t*1000) <= 0.5 )
assert( e*1000 / t_correct <= 0.05 )
t =
2.0001
e =
0.0300
|
3 | Pass |
t_correct = 1000;
for r = 1 : 2
c = cputime;
tic;
waitForMe(t_correct);
t = toc
e = cputime - c
assert( abs(t_correct - t*1000) <= 0.5 )
assert( e*1000 / t_correct <= 0.05 )
end;
t =
1.0001
e =
0.0100
t =
1.0001
e =
0.0200
|
4 | Pass |
t_correct = 2000;
for r = 1 : 2
c = cputime;
tic;
waitForMe(t_correct);
t = toc
e = cputime - c
assert( abs(t_correct - t*1000) <= 0.5 )
assert( e*1000 / t_correct <= 0.05 )
end;
t =
2.0003
e =
0.0200
t =
2.0001
e =
0.0300
|
Remove all the words that end with "ain"
1292 Solvers
Make one big string out of two smaller strings
1148 Solvers
348 Solvers
Pernicious Anniversary Problem
735 Solvers
68 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!