Write a routine that takes input as a string such as
"aabbccdef" and o/p "a2b2c2def"
or
"a4bd2g4" for "aaaabddgggg"
if i want to make a general program for this......cani do by checking
the 2nd array item if it is a number then i will call a fxn
expand????else i will call fxn compress???
n special case is that if i/p is abc it should give a1b1bc1
n if i/p is a1b1c1 it should give abc
m i ryt about all i thnink for this question???
n if i.p is abc it should show a1b1c1 i.e should it is
expanded????or should i call compress which will show abc o/p for abc
for i/p abc...???plz tell me..needed urgent ..thnx in
advance..somebody has link to this can post...thnx
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.