+ 4

Write the code for the series eg: If a3b2c4 ..is taken then output should be aaabbcccc?

can anyone write a code or algorithm ?

4th May 2017, 12:25 PM
sadiya zainab
sadiya zainab - avatar
3 Respuestas
+ 3
loop over the string, if the char in the string position matches anscii code of letters then record it and the position + 1 in a dictionary and then build a string from that dictionary. Remember to increase the counter by 2.
4th May 2017, 12:52 PM
xCalifier
xCalifier - avatar
0
hello 👋
8th Jul 2017, 12:34 PM
bzhzbzg
0
hello sadiya zainab..
8th Jul 2017, 12:36 PM
bzhzbzg