Monotone increasing digits
- Check whether a number's digits never decrease from left to right.
- Given
n, return the largest number no greater thannwhose digits never decrease.
No answer yet. Write the first one; the best answer gets endorsed.
n, return the largest number no greater than n whose digits never decrease.