Hello everyone, I was trying the problem link text but got WA and could not figure out the mistakes. Here is the my solution to the problem link text . Can someone please help in finding out the test case where my code fails.
Hi, I went through your code and had solved this problem on Spoj. You are missing the case when one deletes the string and then again adds it.
This is the link of the code and the case for which your code fails: HASH IT
Also, this site can prove to be helpful in-case you get WA’s Spoj Toolkit
Thanks a lot brother. I didn’t consider that case