Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 1;
s_correct = 1;
assert(isequal(sumOfSeriesI(n),s_correct))
s =
1
|
2 | Pass |
n = 2;
s_correct = 4;
assert(isequal(sumOfSeriesI(n),s_correct))
s =
4
|
3 | Pass |
n = 10;
s_correct = 100;
assert(isequal(sumOfSeriesI(n),s_correct))
s =
100
|
4 | Pass |
n = 15;
s_correct = 225;
assert(isequal(sumOfSeriesI(n),s_correct))
s =
225
|
5 | Pass |
n = 42;
s_correct = 1764;
assert(isequal(sumOfSeriesI(n),s_correct))
s =
1764
|
6 | Pass |
n = 101;
s_correct = 10201;
assert(isequal(sumOfSeriesI(n),s_correct))
s =
10201
|
7 | Pass |
n = 12345;
s_correct = 152399025;
assert(isequal(sumOfSeriesI(n),s_correct))
s =
152399025
|
27998 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
780 Solvers
495 Solvers
Getting the absolute index from a matrix
211 Solvers
175 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!