python3 code
Intuition\nThe method multiplies the input integer n by 2 and 3, and creates a list l with the string representation of n, 2n, and 3n. It then concatenates the 
# Intuition\nThe method multiplies the input integer n by 2 and 3, and creates a list l with the string representation of n, 2n, and 3n. It then concatenates the strings in l to form a single string m.\n\nThe method then iterates through each character in m, appends it to a list q, and converts each character in q to an integer, which is stored in a list s.\n\nFinally, the method checks whether each digit from 1 to 9 appears exactly once in s, and whether the digit 0 does not appear in s. If both conditions are true, the method returns True, otherwise it returns False.\n\n# Approach\nThe code takes an input integer n and checks if the concatenation of n, 2n, and 3n contains all digits from 1 to 9 exactly once and does not contain the digit 0.\n\nTo achieve this, the code multiplies n by 2 and 3 and stores the results in x and y. It then creates a list l with the string representations of n, x, and y, and concatenates them into a single string m.\n\nNext, the code iterates through each character in m, appends it to a list q, and converts each character in q to an integer, which is stored in a list s.\n\nFinally, the code checks whether each digit from 1 to 9 appears exactly once in s, and whether the digit 0 does not appear in s. If both conditions are true, the code returns True, otherwise it returns False.\n\n# Complexity\n- Time complexity:\nO(n)\n\n- Space complexity:\nO(n)\n\n# Code\n```\nclass Solution:\n    def isFascinating(self, n: int) -> bool:\n        x = 2*n \n        y = 3*n \n        l=[] \n        q=[]\n        l.append(str(n))\n        l.append(str(x))\n        l.append(str(y))\n        m = \'\'.join(l)\n        for i in m:\n            q.append(i)\n        s = [int(i) for i in q]\n        if all(s.count(i)==1 for i in range(1,10)):\n            if all(i!=\'0\' for i in s):\n                return True\n        else:\n            return False\n\n```
['Python3']