Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%% count files subdirectories
files = subdir(fullfile(matlabroot,'java'));
assert(numel(files)>=595 & isfield(files,'name'))
|
2 | Pass |
%% count text files
files = subdir(fullfile(matlabroot,'*.txt'));
[~,~,ext]=cellfun(@fileparts,{files.name},'UniformOutput',false);
assert(numel(files)>=209 & isfield(files,'name') & all(strcmp(ext,'.txt')))
|
3 | Pass |
%%
files = subdir(fullfile(matlabroot,'toolbox','*.m'));
[~,~,ext] = cellfun(@fileparts,{files.name},'UniformOutput',false);
assert(numel(files)>=15060 & isfield(files,'name') & all(strcmp(ext,'.m')))
|
Project Euler: Problem 8, Find largest product in a large string of numbers
315 Solvers
Make one big string out of two smaller strings
1149 Solvers
746 Solvers
Permute diagonal and antidiagonal
224 Solvers
669 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!