| Action | Tickets Earned |
|---|---|
Complete Daily Challenge | +1 |
10-Day Streak | +10 |
20-Day Streak | +20 |
30-Day Streak | +30 |
LinkedIn post with #30DaysofCode Everyday (and tag Educative) | +2 per post |
Most-Liked Post Overall | +20 |
Top of Leaderboard | +50 |
Leaderboard: 2nd place | +30 |
Leaderboard: 3rd place | +20 |
Given two integers n and x, determine whether n is a valid digit number with respect to x.
An integer n is considered valid if:
The decimal representation of n contains the digit x.
The leading digit of n is not equal to x.
Return true if n satisfies both conditions, and false otherwise.
Constraints:
n
x
| Action | Tickets Earned |
|---|---|
Complete Daily Challenge | +1 |
10-Day Streak | +10 |
20-Day Streak | +20 |
30-Day Streak | +30 |
LinkedIn post with #30DaysofCode Everyday (and tag Educative) | +2 per post |
Most-Liked Post Overall | +20 |
Top of Leaderboard | +50 |
Leaderboard: 2nd place | +30 |
Leaderboard: 3rd place | +20 |
Given two integers n and x, determine whether n is a valid digit number with respect to x.
An integer n is considered valid if:
The decimal representation of n contains the digit x.
The leading digit of n is not equal to x.
Return true if n satisfies both conditions, and false otherwise.
Constraints:
n
x