Problem 3032 · Medium

Count Numbers With Unique Digits II

Count distinct-digit numbers up to b and up to a minus one by walking the digits of each bound and adding whole blocks of arrangements.

Open the interactive visualisation