Simple Solution in Java | 100% Faster
\nclass Solution {\n    boolean hasZero(int num){\n        while(num>0){\n            if(num%10==0)\n                return true;\n            num/=10;\n       
```\nclass Solution {\n    boolean hasZero(int num){\n        while(num>0){\n            if(num%10==0)\n                return true;\n            num/=10;\n        }\n        return false;\n    }\n    public int[] getNoZeroIntegers(int n) {\n        int i=1;\n        \n        while(i<=n){\n            if(hasZero(i) || hasZero(n-i))\n               i++;\n            else\n                return new int[]{i,n-i}; \n        }\n        return new int[]{-1,-1}; \n    }\n}\n```\nPlease **upvote**, if you like the solution:)
[]