I do not know how the size are computed. Would someone please tell me?. Thanks in advance.
See https://au.mathworks.com/matlabcentral/about/cody/#solve_problems for basic concept. The best way to figure out the details is from experience — just try different alternatives.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 6;
y_correct = 13;
assert(isequal(euler007(x),y_correct))
|
2 | Pass |
%%
x = 10001;
y_correct = 104743;
assert(isequal(euler007(x),y_correct))
|
3 | Pass |
%%
x = 123456;
y_correct = 1632899;
assert(isequal(euler007(x),y_correct))
|
What is the next step in Conway's Life?
422 Solvers
Back to basics 18 - justification
150 Solvers
275 Solvers
138 Solvers
Is this triangle right-angled?
1920 Solvers