well done guillaume, thanks for trying random numbers as well. great effort!
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
sum_up = 5*rand; % sum of array should be this
n = randi(10); %number of elements in array
sum_array = [];
for times = 1:100
for i = 1:n
sum_array(i,1) = fill_array_sum_up_to(sum_up,n,sum_array);
end
checksum(times) = all(diff(sort(sum_array)));
end
assert(all(checksum));
|
Return the largest number that is adjacent to a zero
3750 Solvers
Remove all the words that end with "ain"
1292 Solvers
1882 Solvers
Back to basics 21 - Matrix replicating
1052 Solvers
Basics: 'Find the eigenvalues of given matrix
323 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!