Cody

Solution 1364234

Submitted on 1 Dec 2017
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 = {2 3} * 2; assert(isequal(a,{2 3 2 3}))

c = 1×2 cell array {0×0 double} {0×0 double} last = 2 . . c = 1×2 cell array {1×2 cell} {1×2 cell}

Assertion failed.

2   Fail
a = {[1 2] 3} * [2 3]; assert(isequal(a,{[1 2] 3 [1 2] 3 [1 2] 3; [1 2] 3 [1 2] 3 [1 2] 3}))

c = 2×3 cell array {0×0 double} {0×0 double} {0×0 double} {0×0 double} {0×0 double} {0×0 double} last = 6 . . . . . . c = 2×3 cell array {1×2 cell} {1×2 cell} {1×2 cell} {1×2 cell} {1×2 cell} {1×2 cell}

Assertion failed.