[Python3, C++] Simple. Brute force.
Python\n\nSolution 1: Naive Solution \n\nclass Solution:\n    def check_zeros(self,n):\n        while(n>0):\n            lsb=n%10\n            if lsb==0:\n     
##### Python\n\nSolution 1: Naive Solution \n```\nclass Solution:\n    def check_zeros(self,n):\n        while(n>0):\n            lsb=n%10\n            if lsb==0:\n                return False\n            n=int(n/10)\n        return True\n    def getNoZeroIntegers(self, n):\n        a=1\n        while(True):\n            b=n-a\n            if self.check_zeros(a) and self.check_zeros(b):\n                return [a,b]\n            a=a+1\n```\n\nSolution 2: Use string to check for 0\n```\nclass Solution:\n    def check_zeros(self,n):\n        if \'0\' in str(n):\n            return False\n        else:\n            return True\n\n    def getNoZeroIntegers(self, n):\n        a=1\n        while(True):\n            b=n-a\n            if self.check_zeros(a) and self.check_zeros(b):\n                return [a,b]\n            a=a+1\n```\n\nSolution 3 (credit : @StefanPochmann)\n\n```\nclass Solution:\n    def getNoZeroIntegers(self, n):\n        a=1\n        while(\'0\' in f\'{a}{n-a}\'):\n            a=a+1\n        return [a,n-a]\n\t\t\n#f strings- https://realpython.com/python-f-strings/\n```\n\n#### C++\n\n```\nclass Solution {\npublic:\n    vector<int> getNoZeroIntegers(int n) {\n      int a=1;\n      int b;\n      while(1){\n        b=n-a;\n        if (to_string(a).find(\'0\')==string::npos && to_string(b).find(\'0\')==string::npos){\n          return {a,b};\n        }\n        ++a;\n      }\n    }\n};\n```\n\n
[]