Problem: http://www.codechef.com/problems/ADIGIT
My solution: http://www.codechef.com/viewsolution/3769202
I followed the 'maintaining count of each digit' logic as in the editorial yet I get a TLE for the above solution. What could I be missing out?