Hash Table
1015. Smallest Integer Divisible by K
Among the repunits 1, 11, 111, … (numbers of all 1s), find the length of the smallest one divisible by k, or −1. These numbers grow astronomically, so you can't build them — but for a divisibility…
Loading…