Skip to content

Latest commit

 

History

History

doubleChar

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Double Char

8 kyu link to kata
my solution

Given a string, you have to return a string in which each character (case-sensitive) is repeated once.

Examples (Input -> Output):

* "String"      -> "SSttrriinngg"
* "Hello World" -> "HHeelllloo  WWoorrlldd"
* "1234!_ "     -> "11223344!!__  "

Good Luck!