Problem 44851. X O X Oh!

Solution 1730209

Submitted on 19 Feb 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
n = 3; y_correct = 63; assert(isequal(xoxo(n),y_correct))

Error using reshape To RESHAPE the number of elements must not change. Error in xoxo (line 2) g = reshape( a, [3,3 ]) == 'x'; Error in Test1 (line 3) assert(isequal(xoxo(n),y_correct))