easy python code Beats 100% in Memory
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:\n    def isFascinating(self, n: int) -> bool:\n        def pan(num):\n            if sorted(list(num))==["1","2","3","4","5","6","7","8","9"]:\n                return(True)\n            else:\n                return False\n        n=str(n)+str(n*2)+str(n*3)\n        return pan(n)\n```
['Python3']