This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 128205;
n = 4
y_correct = true;
assert(isequal(parasitic(x,n),y_correct))
n =
4
y =
512820
ans =
1
|
2 | Pass |
%%
x = 179487;
n = 4;
y_correct = true;
assert(isequal(parasitic(x,n),y_correct))
y =
717948
ans =
1
|
3 | Pass |
%%
x = 179487;
n = 3;
y_correct = false;
assert(isequal(parasitic(x,n),y_correct))
y =
538461
ans =
0
|
623 Solvers
Sum of first n terms of a harmonic progression
257 Solvers
Basics: 'Find the eigenvalues of given matrix
322 Solvers
283 Solvers
07 - Common functions and indexing 3
317 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!