Count Special Integers
Count the positive integers up to n whose digits are all distinct by walking n once and multiplying out the free positions.
Count the positive integers up to n whose digits are all distinct by walking n once and multiplying out the free positions.