LeetCodeCheck if The Number is FascinatingCheck if The Number is FascinatingEasyHash TableMathSolution export function isFascinating(n: number): boolean { const c = `${n}${2 * n}${3 * n}`; const set = new Set(c); return c.length === 9 && set.size === 9 && !set.has('0'); }LeetCodeCheck if The Number is Fascinatinghttps://leetcode.com/problems/check-if-the-number-is-fascinating