Beats 100% 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)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    bool isFascinating(int n) {\n        string str = "";\n        int a = n*2,b=n*3;\n        str = to_string(n)+to_string(a)+to_string(b);\n        vector<int> v(10,0);\n        for(auto &i: str){\n            v[i-\'0\']++;\n        }\n        for(int i = 0; i < 10; i++){\n            if(i==0){\n                if(v[i])return false;\n            }else{\n                if(v[i]!=1)return false;\n            }\n        }\n        return true;\n    }\n};\n```
['C++']