Available question text
Count how many positive integers ≤ n have all distinct digits; due to the bound up to 2×10^9, solve by combining combinatorics for full-length counts with a digit-DP/bounded-prefix counting to handle numbers with the same length as n.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2376. Count Special Integers
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source