C++ [Easy] 🔥
Code
# Code
```cpp []
class Solution {
public:
    bool isFascinating(int n) {
        string ans = to_string(n) + to_string(2 * n) + to_string(3 * n);

        for (int i = 0; i < ans.length(); ++i) {
            if (ans[i] == '0') {
                return false;
            }
        }

        unordered_set<char> digits;
        for (int i = 0; i < ans.length(); ++i) {
            digits.insert(ans[i]);
        }

        if ((digits.size() == ans.length()) && (ans.length() == 9)) {
            return 1;
        }
        return 0;
    }
};
```
['Math', 'Ordered Set', 'C++']