Cody

# Problem 43193. Where is 1?

Solution 2070279

Submitted on 27 Dec 2019
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
A=zeros(100,100,100); i=randi(100); j=randi(100); k=randi(100); A(i,j,k)=1; y=find1number(A) assert(isequal(y,[i,j,k]))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In find1number (line 4) In ScoringEngineTestPoint1 (line 6) In solutionTest (line 3)]

Output argument "ans" (and maybe others) not assigned during call to "find1number". Error in Test1 (line 6) y=find1number(A)

2   Fail
A=zeros(100,100,100); i=randi(100); j=randi(100); k=randi(100); A(i,j,k)=1; y=find1number(A) assert(isequal(y,[i,j,k]))

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

Output argument "ans" (and maybe others) not assigned during call to "find1number". Error in Test2 (line 6) y=find1number(A)