Problem 3908 · Easy

Valid Digit Number

Scan decimal digits, test the leading-digit restriction, and combine both conditions.

Open the interactive visualisation