Java Two Pointers
\nclass Solution {\n    public int[] getNoZeroIntegers(int n) {\n        int[] res = new int[2];\n        int l = 1;\n        int r = n - 1;\n        while (l <
```\nclass Solution {\n    public int[] getNoZeroIntegers(int n) {\n        int[] res = new int[2];\n        int l = 1;\n        int r = n - 1;\n        while (l <= r) {\n           if (check(l) && check(r)) {\n               break;\n           }\n            l++;\n            r--;\n        }\n        res[0] = l;\n        res[1] = r;\n        return res;\n    }\n    boolean check(int n) {\n        while (n != 0) {\n            if (n % 10 == 0) {\n                return false;\n            }\n            n /= 10;\n        }\n        return true;\n    }\n}\n```
[]