Cody

# Problem 2140. Alternately upper-lower case

Solution 1634896

Submitted on 28 Sep 2018 by Michael Jarboe
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))

m = 103 m = 71 x = 'Gopala' m = 112 m = 80 x = 'GoPala' m = 108 m = 76 x = 'GoPaLa' y = 'GoPaLa'

2   Pass

m = 97 m = 65 x = 'Adhisesa' m = 104 m = 72 x = 'AdHisesa' m = 115 m = 83 x = 'AdHiSesa' m = 115 m = 83 x = 'AdHiSeSa' y = 'AdHiSeSa'

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

m = 66 m = 114 m = 82 x = 'BoRderline' m = 101 m = 69 x = 'BoRdErline' m = 108 m = 76 x = 'BoRdErLine' m = 110 m = 78 x = 'BoRdErLiNe' y = 'BoRdErLiNe'

4   Pass

m = 81 m = 97 m = 65 x = 'QuAdrillion' m = 114 m = 82 x = 'QuAdRillion' m = 108 m = 76 x = 'QuAdRiLlion' m = 105 m = 73 x = 'QuAdRiLlIon' m = 110 m = 78 x = 'QuAdRiLlIoN' y = 'QuAdRiLlIoN'

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

m = 100 m = 68 x = 'Dinnertime' m = 110 m = 78 x = 'DiNnertime' m = 101 m = 69 x = 'DiNnErtime' m = 116 m = 84 x = 'DiNnErTime' m = 109 m = 77 x = 'DiNnErTiMe' y = 'DiNnErTiMe'

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

m = 98 m = 66 x = 'Bicycle' m = 99 m = 67 x = 'BiCycle' m = 99 m = 67 x = 'BiCyCle' m = 101 m = 69 x = 'BiCyClE' y = 'BiCyClE'