sheokand and string timecomplexity problem

time-limit

#1

solution link : https://www.codechef.com/viewsolution/18880951

please can someone tell me why i was getting 30 points however my code was similar to editorialist code @vijju please. Can you find the problem behind that


#2

Try passing strings by reference instead of by value. It can be a good optimisation to start with.


#3

done it but this is not sufficient i think because it gave me TLE to