Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 7;
y_correct = [2,3];
assert(isequal(nim(x),y_correct))
|
2 | Pass |
%%
x = 11;
y_correct = [2,5];
assert(isequal(nim(x),y_correct))
|
3 | Pass |
%%
x = 3;
y_correct = [2,1];
assert(isequal(nim(x),y_correct))
|
How to find the position of an element in a vector without using the find function
2321 Solvers
2280 Solvers
Number of 1s in a binary string
1230 Solvers
07 - Common functions and indexing 4
259 Solvers
Solving Quadratic Equations (Version 1)
361 Solvers