CHEFWORD - Editorial

I agree, it was the most frustrating point, and the most #OMG point also :slight_smile:

I am getting AC on all case Task 2 & 3. I am getting TLE on 2 & 3 and I can’t figure out why.
Can anyone please look at my code and tell me what more optimization can be done?
http://www.codechef.com/viewsolution/5959121

Thanks

Really nice approach, simple and understandable.
Thanks for sharing.