for ababc - ab is common..so removing ab we get abc.
then in abcabc - abc is commonso removing abc we get abc ?? what is
the difference in this case
On Mon, Dec 12, 2011 at 7:52 PM, top coder topcode...@gmail.com wrote:
For example if aabbabc is given as input after first iteration, it
question is not clear...plz specify clearly what's the objective..
--
Amol Sharma
Third Year Student
Computer Science and Engineering
MNNIT Allahabad
http://gplus.to/amolsharma99
http://twitter.com/amolsharma99http://in.linkedin.com/pub/amol-sharma/21/79b/507http://youtube.com/amolsharma99
+1 amol sharma...what u want ??.output should be shown at every
step or u want final ans??
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this
well 1st part can be done of removing similar character ,
for the 2nd iteration where you want to remove continuous duplicate sub
string then i guess this can be done :-
for example :-
input : aabbabc
1st iteration : ababc
for 2nd iteration consider queue
1) maintain front value inserted int