This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = rand(1,10);
% check for the word "sort
fid = fopen('bubble.m');
t = char(fread(fid,'char')');
fclose(fid);
noSort = isempty(findstr(t, 'sort'));
if ~noSort
disp('Do not use "sort.m" or even type "sort" in your solution!')
end
%
assert(noSort && isequal(bubble(x),sort(x)))
|
339 Solvers
Project Euler: Problem 10, Sum of Primes
555 Solvers
1731 Solvers
354 Solvers
263 Solvers