Cody

# Problem 877. What is Title of Cody Challenge 42?

Solution 609585

Submitted on 1 Apr 2015 by nhagen
• Size: 9
• This is the leading solution.
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
%% n = 1; Title_correct = 'Times 2 - START HERE'; assert(strcmp(Cody_Title(n),Title_correct))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In Cody_Title (line 2) In evaluateCode', '/users/mss.system.0NCk5Y/+cody/verifyCode.m', 238)" style="font-weight:bold">cody.verifyCode>evaluateCode (line 238) In cody.verifyCode (line 43) In mls.internal.fevalJSON (line 14)]

2   Pass
%% n = 2; Title_correct = 'Make the vector [1 2 3 4 5 6 7 8 9 10]'; assert(strcmp(Cody_Title(n),Title_correct))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In Cody_Title (line 2) In evaluateCode', '/users/mss.system.0NCk5Y/+cody/verifyCode.m', 238)" style="font-weight:bold">cody.verifyCode>evaluateCode (line 238) In cody.verifyCode (line 43) In mls.internal.fevalJSON (line 14)]

3   Pass
%% n = 110; Title_correct = 'Make an N-dimensional Multiplication Table'; % This problem hurts my head assert(strcmp(Cody_Title(n),Title_correct))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In Cody_Title (line 2) In evaluateCode', '/users/mss.system.0NCk5Y/+cody/verifyCode.m', 238)" style="font-weight:bold">cody.verifyCode>evaluateCode (line 238) In cody.verifyCode (line 43) In mls.internal.fevalJSON (line 14)]

4   Pass
%% n = 808; Title_correct = 'Hamming Weight - Fast'; assert(strcmp(Cody_Title(n),Title_correct))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In Cody_Title (line 2) In evaluateCode', '/users/mss.system.0NCk5Y/+cody/verifyCode.m', 238)" style="font-weight:bold">cody.verifyCode>evaluateCode (line 238) In cody.verifyCode (line 43) In mls.internal.fevalJSON (line 14)]