I was trying to solve SAMESNAK problem on codechef and came up with this solution. I have already looked at all the other questions on the forum and my code passes all the test cases which other have pointed out.
Hey you can generate some random test cases and run it on your code.And run the same test cases on someone’s AC code which is now available and check the difference between the output of your and the AC one solution.For checking difference in output you can use this.
I understand other people’s approach and solution and it passes for all the random cases I generate. Can you please point out some of the cases in which the solution fails