Cody

Solution 2607586

Submitted on 24 Jun 2020 by Nikolaos Nikolaou
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
x = 'This is a very good day' y_correct = [2 0 0 2 1 0 1 1 2 0 0 0 0 0 2 0 0 1 2 1 0 1 0 0 2 0] assert(isequal(count_alphabet(x),y_correct))

x = 'This is a very good day' y_correct = 2 0 0 2 1 0 1 1 2 0 0 0 0 0 2 0 0 1 2 1 0 1 0 0 2 0 l = 'abcdefghijklmnopqrstuvwxyz' f = 2 f = 2 0 f = 2 0 0 f = 2 0 0 2 f = 2 0 0 2 1 f = 2 0 0 2 1 0 f = 2 0 0 2 1 0 1 f = 2 0 0 2 1 0 1 1 f = 2 0 0 2 1 0 1 1 2 f = 2 0 0 2 1 0 1 1 2 0 f = 2 0 0 2 1 0 1 1 2 0 0 f = 2 0 0 2 1 0 1 1 2 0 0 0 f = 2 0 0 2 1 0 1 1 2 0 0 0 0 f = 2 0 0 2 1 0 1 1 2 0 0 0 0 0 f = 2 0 0 2 1 0 1 1 2 0 0 0 0 0 2 f = 2 0 0 2 1 0 1 1 2 0 0 0 0 0 2 0 f = 2 0 0 2 1 0 1 1 2 0 0 0 0 0 2 0 0 f = 2 0 0 2 1 0 1 1 2 0 0 0 0 0 2 0 0 1 f = 2 0 0 2 1 0 1 1 2 0 0 0 0 0 2 0 0 1 2 f = 2 0 0 2 1 0 1 1 2 0 0 0 0 0 2 0 0 1 2 1 f = 2 0 0 2 1 0 1 1 2 0 0 0 0 0 2 0 0 1 2 1 0 f = 2 0 0 2 1 0 1 1 2 0 0 0 0 0 2 0 0 1 2 1 0 1 f = 2 0 0 2 1 0 1 1 2 0 0 0 0 0 2 0 0 1 2 1 0 1 0 f = 2 0 0 2 1 0 1 1 2 0 0 0 0 0 2 0 0 1 2 1 0 1 0 0 f = 2 0 0 2 1 0 1 1 2 0 0 0 0 0 2 0 0 1 2 1 0 1 0 0 2 f = 2 0 0 2 1 0 1 1 2 0 0 0 0 0 2 0 0 1 2 1 0 1 0 0 2 0

2   Pass
x = 'hAvE you Been haVInG fun so FaR ?' y_correct = [3 1 0 0 3 2 1 2 1 0 0 0 0 3 2 0 0 1 1 0 2 2 0 0 1 0] assert(isequal(count_alphabet(x),y_correct))

x = 'hAvE you Been haVInG fun so FaR ?' y_correct = 3 1 0 0 3 2 1 2 1 0 0 0 0 3 2 0 0 1 1 0 2 2 0 0 1 0 l = 'abcdefghijklmnopqrstuvwxyz' f = 3 f = 3 1 f = 3 1 0 f = 3 1 0 0 f = 3 1 0 0 3 f = 3 1 0 0 3 2 f = 3 1 0 0 3 2 1 f = 3 1 0 0 3 2 1 2 f = 3 1 0 0 3 2 1 2 1 f = 3 1 0 0 3 2 1 2 1 0 f = 3 1 0 0 3 2 1 2 1 0 0 f = 3 1 0 0 3 2 1 2 1 0 0 0 f = 3 1 0 0 3 2 1 2 1 0 0 0 0 f = 3 1 0 0 3 2 1 2 1 0 0 0 0 3 f = 3 1 0 0 3 2 1 2 1 0 0 0 0 3 2 f = 3 1 0 0 3 2 1 2 1 0 0 0 0 3 2 0 f = 3 1 0 0 3 2 1 2 1 0 0 0 0 3 2 0 0 f = 3 1 0 0 3 2 1 2 1 0 0 0 0 3 2 0 0 1 f = 3 1 0 0 3 2 1 2 1 0 0 0 0 3 2 0 0 1 1 f = 3 1 0 0 3 2 1 2 1 0 0 0 0 3 2 0 0 1 1 0 f = 3 1 0 0 3 2 1 2 1 0 0 0 0 3 2 0 0 1 1 0 2 f = 3 1 0 0 3 2 1 2 1 0 0 0 0 3 2 0 0 1 1 0 2 2 f = 3 1 0 0 3 2 1 2 1 0 0 0 0 3 2 0 0 1 1 0 2 2 0 f = 3 1 0 0 3 2 1 2 1 0 0 0 0 3 2 0 0 1 1 0 2 2 0 0 f = 3 1 0 0 3 2 1 2 1 0 0 0 0 3 2 0 0 1 1 0 2 2 0 0 1 f = 3 1 0 0 3 2 1 2 1 0 0 0 0 3 2 0 0 1 1 0 2 2 0 0 1 0

Suggested Problems

More from this Author1