3790. Smallest All-Ones Multiple
You are given a positive integer
k.Find the smallest integer
ndivisible bykthat consists of only the digit 1 in its decimal representation (e.g., 1, 11, 111, …).Return an integer denoting the number of digits in the decimal representation of
n. If no suchnexists, return-1.
1 |
|