Given a positive integer N. You have to find Nth natural number after removing all the numbers containing digit 9 .
Example 1:
Input:
N = 8
Output:
8
Explanation:
After removing natural numbers which contains
digit 9, first 8 numbers are 1,2,3,4,5,6,7,8
and 8th number is 8.
i am getting correct output but its vey time taking taking algo and showing tle , how can i optimise my code in o(log n)https://ide.codingblocks.com/s/413506