Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
time = '2:38';
y_correct = 1;
assert(isequal(power_time(time),y_correct))
|
2 | Pass |
time = '8:23';
y_correct = 100;
assert(isequal(power_time(time),y_correct))
|
3 | Pass |
time = '3:28';
y_correct = 10;
assert(isequal(power_time(time),y_correct))
|
4 | Pass |
time = '9:23';
y_correct = 1000;
assert(isequal(power_time(time),y_correct))
|
5 | Pass |
time = '7:22';
y_correct = 0;
assert(isequal(power_time(time),y_correct))
|
6 | Pass |
time = '1:31';
y_correct = 1001;
assert(isequal(power_time(time),y_correct))
|
7 | Pass |
time = '4:22';
y_correct = 1100;
assert(isequal(power_time(time),y_correct))
|
8 | Pass |
time = '1:02';
y_correct = 1000;
assert(isequal(power_time(time),y_correct))
|
9 | Pass |
time = '4:12';
y_correct = 0;
assert(isequal(power_time(time),y_correct))
|
10 | Pass |
time = '5:15';
y_correct = 1001;
assert(isequal(power_time(time),y_correct))
|
"Low : High - Low : High - Turn around " -- Create a subindices vector
320 Solvers
How long is the longest prime diagonal?
338 Solvers
Split a string into chunks of specified length
475 Solvers
412 Solvers
1141 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!