Cody

Solution 422616

Submitted on 26 Mar 2014 by Ahmad Alzahrani
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
%% s = 'hello' c_correct = 86400; assert(isequal(word_product(s),c_correct))

s = hello s = hello a = 8 a = 5 a = 12 a = 12 a = 15

2   Pass
%% s = 'Fantastic' c_correct = 17236800; assert(isequal(word_product(s),c_correct))

s = Fantastic s = fantastic a = 6 a = 1 a = 14 a = 20 a = 1 a = 19 a = 20 a = 9 a = 3

Suggested Problems

More from this Author95