Convert Integer to the Sum of Two No-Zero Integers Solution in C++
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\nO(n*m)\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\nO(n)\n# Code\n```\n// // First Approach\n\n\n\n// class Solution {\n// public:\n//     vector<int> getNoZeroIntegers(int n) {\n//         vector<int> arr;\n//         string s1, s2;\n//         int i, j, k, flag=0;\n//         for(i=1 ; i<n ; i++)\n//         {\n//             flag=0;\n//             j = i;\n\n//             // Check if 1st number contains any zero\n//             while(j>0)\n//             {\n//                 k = j%10;\n//                 j = j/10;\n//                 if(k==0)\n//                 {\n//                     flag=1;\n//                     break;\n//                 }\n//             }\n\n//             // if first number does not contain any zero\n//             if(flag==0)\n//             {\n//                 // then check if second number contains any zero\n//                 j = n-i;\n//                 while(j>0)\n//                 {\n//                     k = j%10;\n//                     j = j/10;\n//                     if(k==0)\n//                     {\n//                         flag=1;\n//                         break;\n//                     }\n//                 }\n//             }\n\n//             // if second number also does not conatin any zero, then push both values to vector\n//             if(flag==0)\n//             {\n//                 arr.push_back(i);\n//                 arr.push_back(n-i);\n//                 break;\n//             }\n//         }\n//         return arr;\n//     }\n// };\n\n\n\n// Second Approach\n\nclass Solution {\npublic:\n    vector<int> getNoZeroIntegers(int n) {\n        vector<int> arr;\n        string s1, s2;\n        int i, j, k, flag=0;\n        for(i=1 ; i<n ; i++)\n        {\n            flag = 0;\n            s1 = to_string(i);\n            s2 = to_string(n-i);\n            for(j=0 ; j<s1.length() ; j++)\n            {\n                if(s1[j]==\'0\')\n                {\n                    flag=1;\n                    break;\n                }\n            }\n            if(flag==0)\n            {\n                for(j=0 ; j<s2.length() ; j++)\n                {\n                    if(s2[j]==\'0\')\n                    {\n                        flag=1;\n                        break;\n                    }\n                }\n            }\n            if(flag==0)\n            {\n                arr.push_back(i);\n                arr.push_back(n-i);\n                break;\n            }\n        }\n        return arr;\n    }\n};\n\n\n\n\n```
['C++']