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
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