Question: 7. A function for transforming strings into strings is of type String- >String. Write a function blowup that converts a string aa2a3... to aa2aa3a3a3...
7. A function for transforming strings into strings is of type String- >String. Write a function blowup that converts a string aa2a3... to aa2aa3a3a3... For example, blowup "bang!" should yield "baannngggg!!!!!". (Hint: use ++ for string concatenation, that is, for joining two strings into one.) (This was a test question.)
Step by Step Solution
3.40 Rating (141 Votes )
There are 3 Steps involved in it
Heres a simple implementation in a language like Ha... View full answer
Get step-by-step solutions from verified subject matter experts
