Problem 1999 · Medium

Smallest Greater Multiple Made of Two Digits

Build numbers from two digits in ascending order with a queue, and stop at the first one that is a multiple of k above k.

Open the interactive visualisation