CHALLENGE - Alternate Capitalization | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 3

CHALLENGE - Alternate Capitalization

You will be given a string, and your task is to write a function that will capitalize the letters that have even indexes and odd indexes separately, then return an array of both cases like the example bellow. EXAMPLE: capitalize("abcdef") = ['AbCdEf', 'aBcDeF']. Any language is welcome :D

24th Nov 2017, 12:08 PM
Witty Phantom
Witty Phantom - avatar
4 ответов
24th Nov 2017, 4:40 PM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
24th Nov 2017, 12:25 PM
SAKSHI
SAKSHI - avatar
+ 5
https://code.sololearn.com/c5e4UKo9UZyg/?ref=app
3rd Dec 2017, 4:04 PM
I'm_Groot
I'm_Groot - avatar
+ 2
This is actually amazing Armen!
24th Nov 2017, 4:32 PM
Witty Phantom
Witty Phantom - avatar