Cody

Problem 1776. Singularity v5 (with apologies to the true hack masters)

Solution 298743

Submitted on 8 Aug 2013 by Jean-Marie Sainthillier
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   Fail
%% x=1/; % oops y=2/; % double oops assert(isequal(not_my_function(x),y));

Error: You may not use the command(s) assignin,builtin,evalin in your code

2   Fail
%% x=1/; % oops y=2/; % double oops assert(isequal(my_function(x),y));

Error: You may not use the command(s) assignin,builtin,evalin in your code

3   Fail
%% forbidden = '(freepass)'; assert(isempty(regexp(evalc('type my_function'),forbidden)));

Error: You may not use the command(s) assignin,builtin,evalin in your code