cpp 🥱
Code
# Code
```cpp []
class Solution {
public:
    vector<int> getNoZeroIntegers(int n) {
        int i = 1;
        int j = n - 1;
        string str1 = "", str2 = "";

        while (i <= j) {
            bool flag1 = false, flag2 = false;

            str1 = to_string(i);
            str2 = to_string(j);

            for (int j = 0; j < str1.length(); ++j) {
                if (str1[j] == '0') {
                    flag1 = 1;
                    break;
                }
            }

            for (int j = 0; j < str2.length(); ++j) {
                if (str2[j] == '0') {
                    flag2 = 1;
                    break;
                }
            }

            if (!flag1 and !flag2) {
                return {i, j};
            } else {
                i++, j--;
            }
        }

        return {1};
    }
};
```
['Math', 'String', 'C++']