An integer is considered to have monotone increasing digits if each digit is less than or equal to the digit immediately following it.
Given an integer n, return the largest integer less than or equal to n that has monotone increasing digits.
Constraints:
n
An integer is considered to have monotone increasing digits if each digit is less than or equal to the digit immediately following it.
Given an integer n, return the largest integer less than or equal to n that has monotone increasing digits.
Constraints:
n