C++ ~ 100% faster code | easy to understand
\tclass Solution {\n\tpublic:\n\n\t\tbool containsZero(int n){\n\n\t\t\twhile(n){\n\t\t\t\tif(n%10 == 0) return false;\n\t\t\t\tn = n/10;\n\t\t\t}\n\n\t\t\tretu
\tclass Solution {\n\tpublic:\n\n\t\tbool containsZero(int n){\n\n\t\t\twhile(n){\n\t\t\t\tif(n%10 == 0) return false;\n\t\t\t\tn = n/10;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\n\t\tvector<int> getNoZeroIntegers(int n) {\n\n\t\t\tvector<int> ans(2,-1);\n\n\t\t\tfor(int i=1;i<=n;i++){\n\n\t\t\t\tif(containsZero(i) && containsZero(n-i)){\n\t\t\t\t\tans[0] = i;\n\t\t\t\t\tans[1] = n-i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\treturn ans;\n\t\t}\n\t};
['C', 'C++']