Check if The Number is Fascinating
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```typescript []
function isFascinating(n: number): boolean {
  const concatenated = `${n}${n * 2}${n * 3}`;
  
  return concatenated.length === 9 && new Set(concatenated).size === 9 && !concatenated.includes('0');
}

```
['TypeScript']