Problem 928. New Cody Time-Out Time

Solution 730515

Submitted on 8 Sep 2015
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
%% feval(@assignin,'caller','score',0);

2   Pass
%% filetext = fileread('Almost_Timeout.m'); assert(isempty(strfind(filetext, 'assignin'))) assert(isempty(strfind(filetext, 'rehash')),'rehash verboten')

3   Fail
%% ta=clock; tic Almost_Timeout(); toc t1=etime(clock,ta); t2=60-t1; feval(@assignin,'caller','score',floor(t2));

Requested 89000000x24 (15.9GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a long time and cause MATLAB to become unresponsive. See <a href="matlab: helpview([docroot '/matlab/'], 'matlab_env_workspace_prefs')">array size limit</a> or preference panel for more information.