[Java] 0ms 100% Space and Time
\nclass Solution {\n    public int[] getNoZeroIntegers(int n) {\n        n--;\n        int m=1;\n        int ans[]={m,n};\n        \n        while(contains(ans[
```\nclass Solution {\n    public int[] getNoZeroIntegers(int n) {\n        n--;\n        int m=1;\n        int ans[]={m,n};\n        \n        while(contains(ans[0])==true || contains(ans[1])==true){\n            ans[0]++;\n            ans[1]--;\n        }\n        \n        return ans;\n    }\n    public boolean contains(int n){\n        boolean flag=false;\n        while(n!=0){\n            if(n%10==0)\n                return true;\n            n=n/10;\n        }\n        return false;\n    }\n}\n```
['Java']