challenges

Some problem solving programming challenges, i have solved. Not all are here, but started adding them slowly.

This project is maintained by chankruze

Text Decompressor

You need to decompress text. The compressed version has a number next to each symbol/letter, representing the amount of time that symbol should appear.

For example, a2b3 is the compressed version of aabbb.

Task

Write a program that takes the compressed text as input and outputs the decompressed version.

Input Format

A single string with letters/symbols, each followed by a number.

Output Format

A string, representing the decompressed text.

Sample Input

k2&4b1

Sample Output

kk&&&&b

Explanation

The letter k appears 2 times, the symbol & appears 4 times and the letter b appears once.

Solutions

Language Solution
C not available
CPP not available
C# not available
Python available
Java not available
Ruby not available
Swift not available