Cody

# Problem 42. Find the alphabetic word product

Solution 1226259

Submitted on 6 Jul 2017 by Salvatore Lacava
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' y = 'abcdeFghijklmnopqrstuvwxz' p = 8 p = 8 p = 8 40 p = 40 p = 40 0 480 p = 480 p = 480 0 0 5760 p = 5760 p = 5760 0 0 0 86400 p = 86400

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

s = 'Fantastic' y = 'abcdeFghijklmnopqrstuvwxz' p = 6 p = 6 p = 6 6 p = 6 p = 6 0 84 p = 84 p = 84 0 0 1680 p = 1680 p = 1680 0 0 0 1680 p = 1680 p = 1680 0 0 0 0 31920 p = 31920 p = 31920 0 0 0 0 0 638400 p = 638400 p = 638400 0 0 0 0 0 0 5745600 p = 5745600 p = 5745600 0 0 0 0 0 0 0 17236800 p = 17236800

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!