Mar 31, 2010

Removing ab patterns

Given a string of containing alphabets. Task is to remove ab patterns in linear time using inline algorithm.

e.g. cdaabbcd gives the output cdcd after the execution of the algorithm.

No comments:

Post a Comment