Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
tic
for i = 1 : 150
s = num2str([randi(9),randi([0, 9], 1, i)],-6);
t = java.math.BigInteger(s);
a = big_integer_sqrt(char(t.pow(2)));
assert(isequal(a, char(s)));
end
toc
y =
[]
y =
9.1652 8.0000
|
Get the area codes from a list of phone numbers
532 Solvers
337 Solvers
Sum of diagonal of a square matrix
1327 Solvers
Set the array elements whose value is 13 to 0
935 Solvers
Get the elements of diagonal and antidiagonal for any m-by-n matrix
267 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!