Problem Statement | |||||||||||||
There is nothing more beautiful than just an integer number. You are given an integer n. Return the smallest integer greater than or equal to n that contains exactly k distinct digits in decimal notation. | |||||||||||||
Definition | |||||||||||||
| |||||||||||||
Constraints | |||||||||||||
| - | n will be between 1 and 10^18, inclusive. | ||||||||||||
| - | k will be between 1 and 10, inclusive. | ||||||||||||
Examples | |||||||||||||
| 0) | |||||||||||||
| |||||||||||||
| 1) | |||||||||||||
| |||||||||||||
| 2) | |||||||||||||
| |||||||||||||
| 3) | |||||||||||||
| |||||||||||||