Cody

Problem 207. hackathon impossible

Solution 184417

Submitted on 2 Jan 2013 by Tom Holz
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
%% rand(1,12345); assert(isequal(randi(10000),hackathon3))

[Warning: The RandStream.getDefaultStream static method will be removed in a future release. Use RandStream.getGlobalStream instead.] [> In RandStream.RandStream>RandStream.getDefaultStream at 460 In hackathon3 at 5 In verifyCode>evaluateCode at 226 In verifyCode at 40 In fevalJSON at 14]

2   Pass
%% assert(isequal(randi(10000),hackathon3))

[Warning: The RandStream.getDefaultStream static method will be removed in a future release. Use RandStream.getGlobalStream instead.] [> In RandStream.RandStream>RandStream.getDefaultStream at 460 In hackathon3 at 5 In verifyCode>evaluateCode at 226 In verifyCode at 40 In fevalJSON at 14]

3   Pass
%% assert(isequal(randi(10000),hackathon3))

[Warning: The RandStream.getDefaultStream static method will be removed in a future release. Use RandStream.getGlobalStream instead.] [> In RandStream.RandStream>RandStream.getDefaultStream at 460 In hackathon3 at 5 In verifyCode>evaluateCode at 226 In verifyCode at 40 In fevalJSON at 14]

4   Pass
%% assert(isequal(randi(10000),hackathon3))

[Warning: The RandStream.getDefaultStream static method will be removed in a future release. Use RandStream.getGlobalStream instead.] [> In RandStream.RandStream>RandStream.getDefaultStream at 460 In hackathon3 at 5 In verifyCode>evaluateCode at 226 In verifyCode at 40 In fevalJSON at 14]

Suggested Problems

More from this Author38

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!