Cody

Problem 44620. generate capital english alphabets

Solution 2068704

Submitted on 24 Dec 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 = 1; y_correct = 'A'; assert(isequal(generate_alphabets(n),y_correct))

letters = 'AB'

Assertion failed.

2   Fail
n = 6; y_correct = 'ABCDEF'; assert(isequal(generate_alphabets(n),y_correct))

letters = 'ABCDEFG'

Assertion failed.

3   Fail
n = 26; y_correct = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; assert(isequal(generate_alphabets(n),y_correct))

letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ['

Assertion failed.

4   Fail
n = 12; y_correct = 'ABCDEFGHIJKL'; assert(isequal(generate_alphabets(n),y_correct))

letters = 'ABCDEFGHIJKLM'

Assertion failed.

5   Fail
n = 21; y_correct = 'ABCDEFGHIJKLMNOPQRSTU'; assert(isequal(generate_alphabets(n),y_correct))

letters = 'ABCDEFGHIJKLMNOPQRSTUV'

Assertion failed.

6   Fail
n = 3; y_correct = 'ABC'; assert(isequal(generate_alphabets(n),y_correct))

letters = 'ABCD'

Assertion failed.