Tap here to switch tabs
Problem
Submissions

Problem: Check if The Number is Fascinating

med
30 min
Try to solve the Check if The Number is Fascinating problem.

Statement

You are given an integer n consisting of 33 digits.

You obtain a concatenated string by joining n, 2imes2 imes n, and 3imes3 imes n sequentially.

The number n is considered fascinating if the concatenated string contains every digit from 11 to 99 exactly once and contains no 00.

Return true if n is fascinating, or false otherwise.

Constraints:

  • 100≤100 \leq n ≤999\leq 999

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Check if The Number is Fascinating

med
30 min
Try to solve the Check if The Number is Fascinating problem.

Statement

You are given an integer n consisting of 33 digits.

You obtain a concatenated string by joining n, 2imes2 imes n, and 3imes3 imes n sequentially.

The number n is considered fascinating if the concatenated string contains every digit from 11 to 99 exactly once and contains no 00.

Return true if n is fascinating, or false otherwise.

Constraints:

  • 100≤100 \leq n ≤999\leq 999