Cody

Problem 2140. Alternately upper-lower case

Solution 1664684

Submitted on 2 Nov 2018 by Augusto Mazzei
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 = 'gopala'; y_correct = 'GoPaLa'; assert(isequal(altul(x),y_correct))

x = 'GoPaLa' x = 'GoPaLa'

2   Pass
x = 'adhisesa'; y_correct = 'AdHiSeSa'; assert(isequal(altul(x),y_correct))

x = 'AdHiSeSa' x = 'AdHiSeSa'

3   Pass
x = 'Borderline'; y_correct = 'BoRdErLiNe'; assert(isequal(altul(x),y_correct))

x = 'BoRdErLiNe' x = 'BoRdErLiNe'

4   Pass
x = 'Quadrillion'; y_correct = 'QuAdRiLlIoN'; assert(isequal(altul(x),y_correct))

x = 'QuAdRiLlIoN' x = 'QuAdRiLlIoN'

5   Pass
x = 'dinnertime'; y_correct = 'DiNnErTiMe'; assert(isequal(altul(x),y_correct))

x = 'DiNnErTiMe' x = 'DiNnErTiMe'

6   Pass
x = 'bicycle'; y_correct = 'BiCyClE'; assert(isequal(altul(x),y_correct))

x = 'BiCyClE' x = 'BiCyClE'

Suggested Problems

More from this Author9