This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x =150000000 ;
y_correct = 500;
assert(isequal(light_time(x),y_correct))
y =
500
|
2 | Pass |
x=1800000;
y_correct = 6;
assert(isequal(light_time(x),y_correct))
y =
6
|
3 | Pass |
x=300000;
y_correct = 1;
assert(isequal(light_time(x),y_correct))
y =
1
|
4 | Pass |
x=57909000;
y_correct = 193;
assert(isequal(light_time(x),y_correct))
y =
193
|
5 | Pass |
x=5790960000;
y_correct = 1.9303e+04;
assert(isequal(light_time(x),y_correct))
y =
19303
|
Find the longest sequence of 1's in a binary sequence.
3369 Solvers
Replace NaNs with the number that appears to its left in the row.
2018 Solvers
2261 Solvers
103 Solvers
60 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!