How do we calculate the number of numbers less than N which contain a certain digit ‘d’, within time limit?
2 Likes
Editorial can be found here - http://discuss.codechef.com/questions/43055/anubgc-editorial
If you have doubts in the Editorial, please comment there it self.