algorithms.tutorialhorizon.com

Monotone Increasing Digits | Algorithms

Given a number N, find the largest number which is less than equal to N and has monotone increasing digits. Monotone Increasing Digits - If all the pairs (x, y) of adjacent digits satisfy the property, x