Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 1700;
y_correct = false;
assert(isequal(leap(x),y_correct))
ans =
0
|
2 | Pass |
%%
x = 2000;
y_correct = true;
assert(isequal(leap(x),y_correct))
ans =
1
|
3 | Pass |
%%
x = 2014;
y_correct = false;
assert(isequal(leap(x),y_correct))
ans =
0
|
4 | Pass |
%%
x = 2020;
y_correct = true;
assert(isequal(leap(x),y_correct))
ans =
1
|
5 | Pass |
%%
x = 2100;
y_correct = false;
assert(isequal(leap(x),y_correct))
ans =
0
|
6 | Pass |
%%
x = 2400;
y_correct = true;
assert(isequal(leap(x),y_correct))
ans =
1
|
Find the longest sequence of 1's in a binary sequence.
3370 Solvers
It dseon't mettar waht oedrr the lrettes in a wrod are.
652 Solvers
Project Euler: Problem 2, Sum of even Fibonacci
835 Solvers
Who knows the last digit of pi?
557 Solvers
664 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!