This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
for n=4:6;
sq=squares(n);
assert(length(sq)==n)
for k=1:n
assert(sq(k)>0)
assert(round(sqrt(sq(k)))==sqrt(sq(k)))
end
assert(round(sqrt(sum(sq)))==sqrt(sum(sq)))
end
|
649 Solvers
794 Solvers
32 Solvers
Calculate the Hamming distance between two strings
144 Solvers
66 Solvers