Smallest Integer Divisible by K
Description
Input: 1
Output: 1
Explanation: The smallest answer is N = 1, which has length 1.Input: 2
Output: -1
Explanation: There is no such positive integer N divisible by 2.Input: 3
Output: 3
Explanation: The smallest answer is N = 111, which has length 3.Solution
Last updated