Greedy Algorithms - Monotone Increasing Digits
What is the time complexity of the optimal greedy algorithm that finds the largest monotone increasing digits number less than or equal to
n, where d is the number of digits in n?