m talking for string expansion version ......that if i/p like aaabbbccc then o/p a3b3c3
n wat to do for abc i/p in that case??? On Mon, Oct 3, 2011 at 11:13 AM, rahul sharma <[email protected]>wrote: > @rahul verma > > yeah i know supposes i m doing for > > a3b3c3...... > > o/p :- aaabbbccc > > > if i give i/p: abc to same program.... > then should it accept n display then errorr....coz abc not > accepted...a1b1c1 is aceepted....or it will show abc as such.. > tell me wat to do for abc???? > > > On Mon, Oct 3, 2011 at 11:04 AM, Rahul Verma <[email protected]>wrote: > >> @Rahul >> >> Parse the string and check the next element of the array if it is exactly >> the previous one then *increase the counter by 1* else no need to >> increase the counter. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/algogeeks/-/M08JxV-GeAsJ. >> 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. >> > > -- 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.
