Given a string, return a string where there are three characters for every character in the original. | Sololearn: Learn to code for FREE!
Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję
0

Given a string, return a string where there are three characters for every character in the original.

Example: repeatCharacters('Hello') --> 'HHHeeellllllooo' repeatCharacters ('Mississippi') --> 'MMMiiissssssiiippppppiii'

4th Feb 2022, 7:28 AM
Jaz
Jaz - avatar
5 odpowiedzi