You are given an integer
nand a digitx.A number is considered valid if:
- It contains at least one occurrence of digit
x, and- It does not start with digit
x.Return
trueifnis valid, otherwise returnfalse.
1 | class Solution { |
You are given an integer
nand a digitx.A number is considered valid if:
- It contains at least one occurrence of digit
x, and- It does not start with digit
x.Return
trueifnis valid, otherwise returnfalse.
1 | class Solution { |