Need help on Software Bugs — CTU Open 2012

Revision en1, by bvd, 2017-04-05 10:41:45

I'm currently stuck on Sortware Bugs — CTU Open 2012.

Problem Summary:

You're given a string S and a string B (S has at most 107 characters, and B has at most 1000 characters); and you need to remove B from S repeatedly until there is no B in S.

Can you give me some hints? I have been trying to solve this problem for two days, and I cannot figure out any way to solve this problem.

There is a solution on the Internet; however, since it is not in English (and Google Translate didn't help much), I cannot understand it :(.

Thank you :)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English bvd 2017-04-05 10:41:45 734 Initial revision (published)