improve test suit
This solution only works for vectors that are already sorted from low to high :) but it passed the test suite
This works in R2012b, but not on cody
function ans = duplicate(x)
[x;x];
x(:)';
end
Project Euler: Problem 5, Smallest multiple
397 Solvers
Set some matrix elements to zero
290 Solvers
321 Solvers
07 - Common functions and indexing 1
338 Solvers
485 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!