Smallest Integer Divisible by K  || C++ || 100% FAST
\nclass Solution {\npublic:\n    int smallestRepunitDivByK(int K) {\n        int num=0;\n        for(int i=1;i<=K;i++)\n        {\n            num=(num*10)%K+1;
```\nclass Solution {\npublic:\n    int smallestRepunitDivByK(int K) {\n        int num=0;\n        for(int i=1;i<=K;i++)\n        {\n            num=(num*10)%K+1;\n            if(num%K==0)\n            {\n                return i;\n            }\n        }\n        return -1;\n    }\n};\n```
[]