0

expanded alphabets

Given a string S with alphabets and their count, repeat the alphabets based on their count and print the value as the output. Input Format: The first line contains S. Output Format: The first line contains the alphabets repeated based on their count. Boundary Condition: 1 <= Length of S <= 100 Example Input/Output 1: Input: a2c5z4 Output: aaccccczzzz

26th Feb 2018, 12:26 PM
Vignesh M
Vignesh M - avatar
1 Answer
0
It seems to be a challenge, you should tag it as such !
29th Jul 2019, 11:42 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar