Cody

Problem 207. hackathon impossible

Solution 2855432

Submitted on 20 Aug 2020 by Rafael S.T. Vieira
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: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In hackathon3 (line 5) In ScoringEngineTestPoint1 (line 2) In solutionTest (line 3)] ans = [] ans = logical 1

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In hackathon3 (line 5) In ScoringEngineTestPoint2 (line 1) In solutionTest (line 5)] ans = [] ans = logical 1

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In hackathon3 (line 5) In ScoringEngineTestPoint3 (line 1) In solutionTest (line 7)] ans = [] ans = logical 1

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In hackathon3 (line 5) In ScoringEngineTestPoint4 (line 1) In solutionTest (line 9)] ans = [] ans = logical 1

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!