C++ O(log N) solution using only integers
\nclass Solution {\npublic:\n    vector<int> getNoZeroIntegers(int n) {\n        if(n<10) {\n            return {1, n-1};\n        }\n        int result=0;\n   
```\nclass Solution {\npublic:\n    vector<int> getNoZeroIntegers(int n) {\n        if(n<10) {\n            return {1, n-1};\n        }\n        int result=0;\n        int place_value = 1;\n        int m = n;\n        while(m/place_value >= 10) {\n            if((m/place_value)%10 == 1) {\n                result += place_value *2;\n            } else {\n                result += place_value * 1;\n            }\n            m = n - result;\n            place_value *= 10;\n        }\n        return {result, n-result};\n    }\n};\n```
[]