[LeetCode] Check if The Number is Fascinating

2729. Check if The Number is Fascinating

You are given an integer n that consists of exactly 3 digits.

We call the number n fascinating if, after the following modification, the resulting number contains all the digits from 1 to 9 exactly once and does not contain any 0‘s:

  • Concatenate n with the numbers 2 * n and 3 * n.

Return true if n is fascinating, or false otherwise.

Concatenating two numbers means joining them together. For example, the concatenation of 121 and 371 is 121371.

Read more
[CS Academy] Largest And SubsetRead more
[CS Academy] Kth Special NumberRead more
[CS Academy] Grade SystemRead more
[CS Academy] Good PermutationsRead more
[CS Academy] Two CoinsRead more
[Codeforces] Round 153 (Div. 2) B. Unsorting ArrayRead more
[Codeforces] Round 155 (Div. 2) C. AnagramRead more
[Codeforces] Round 156 (Div. 2) D. Mr. Bender and SquareRead more
[Codeforces] Round 161 (Div. 2) D. Cycle in GraphRead more