Count a Digit in 1..N
Medium
Digit Problems
Count how many times digit d appears when writing every number from 1 to n.
Constraints
1 <= n <= 10^9 0 <= d <= 9
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.