Cody

Problem 205. Hackathon: the beginnings

Solution 91715

Submitted on 23 May 2012 by bym
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
%% assert(isequal(hackathon1,randi(10000)))

{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 hackathon1 at 2 In verifyCode>evaluateCode at 189 In verifyCode at 37 In fevalJSON at 14}

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

{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 hackathon1 at 2 In verifyCode>evaluateCode at 189 In verifyCode at 37 In fevalJSON at 14}

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

{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 hackathon1 at 2 In verifyCode>evaluateCode at 189 In verifyCode at 37 In fevalJSON at 14}

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

{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 hackathon1 at 2 In verifyCode>evaluateCode at 189 In verifyCode at 37 In fevalJSON at 14}

Community Treasure Hunt

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

Start Hunting!