Cody

# Problem 477. speed vs size

Solution 2711007

Submitted on 19 Jul 2020
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
str='pause(1)'; ss=14; assert(abs(ss-score(str))<3)

Undefined function 'nodesize' for input arguments of type 'char'. Error in score (line 2) ss = nodesize(str)+time; Error in Test1 (line 3) assert(abs(ss-score(str))<3)

2   Fail
str='pause(1/2);pause(1/2)'; ss=22; assert(abs(ss-score(str))<3)

Undefined function 'nodesize' for input arguments of type 'char'. Error in score (line 2) ss = nodesize(str)+time; Error in Test2 (line 3) assert(abs(ss-score(str))<3)

3   Fail
str='pause(1/200);pause(1/200)'; ss=12; assert(abs(ss-score(str))<3)

Undefined function 'nodesize' for input arguments of type 'char'. Error in score (line 2) ss = nodesize(str)+time; Error in Test3 (line 3) assert(abs(ss-score(str))<3)

4   Fail
str='pause((1/200));pause((1/2))'; ss=19; assert(abs(ss-score(str))<3)

Undefined function 'nodesize' for input arguments of type 'char'. Error in score (line 2) ss = nodesize(str)+time; Error in Test4 (line 3) assert(abs(ss-score(str))<3)

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!