Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 1;
f = 1;
assert(isequal(fib(n),f))
b =
1
f =
1
|
2 | Pass |
n = 6;
f = 8;
assert(isequal(fib(n),f))
b =
1
c =
1
c =
2
c =
3
c =
5
c =
8
|
3 | Pass |
n = 10;
f = 55;
assert(isequal(fib(n),f))
b =
1
c =
1
c =
2
c =
3
c =
5
c =
8
c =
13
c =
21
c =
34
c =
55
|
4 | Pass |
n = 20;
f = 6765;
assert(isequal(fib(n),f))
b =
1
c =
1
c =
2
c =
3
c =
5
c =
8
c =
13
c =
21
c =
34
c =
55
c =
89
c =
144
c =
233
c =
377
c =
610
c =
987
c =
1597
c =
2584
c =
4181
c =
6765
|
9831 Solvers
2240 Solvers
How many trades represent all the profit?
520 Solvers
Split a string into chunks of specified length
475 Solvers
Pernicious Anniversary Problem
735 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!