Solving "Another Problem On Strings — codeforces" using two pointers

Revision en1, by codolove, 2016-02-23 22:09:45

I was trying to solve Another Problem On Strings using two pointers since it was mentioned in its tags but I am not getting an idea of it. I have solved it by using hashing and binary search by considering the prefix sum. It will be helpful if one can give some idea of approaching it with two pointers.

Tags two pointers, #codeforces, #strings

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English codolove 2016-02-23 22:09:45 420 Initial revision (published)