Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [0,0,0 ; 0,0,1 ; 0,1,0 ; 0,1,1 ; 1,0,0 ; 1,0,1 ; 1,1,0 ; 1,1,1];
y_correct = [0.5,0.5,0.5];
assert(isequal(centroid(x),y_correct))
r =
8
c =
3
|
2 | Pass |
%%
x = [0,0 ; 0.5,3 ; 1,0];
y_correct = [0.5,1];
assert(isequal(centroid(x),y_correct))
r =
3
c =
2
|
Remove all the words that end with "ain"
1026 Solvers
Replace NaNs with the number that appears to its left in the row.
1710 Solvers
Project Euler: Problem 7, Nth prime
339 Solvers
Similar Triangles - find the height of the tree
156 Solvers
264 Solvers