Tap here to switch tabs
Problem
Submissions

Problem: Numbers With Repeated Digits

med
30 min
Try to solve the Numbers With Repeated Digits problem.

Statement

Given an integer n, return the count of positive integers in the range [1,n][1, n] that contain at least one repeated digit.

Constraints:

  • 1≤n≤1091 \le n \le 10^9

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Numbers With Repeated Digits

med
30 min
Try to solve the Numbers With Repeated Digits problem.

Statement

Given an integer n, return the count of positive integers in the range [1,n][1, n] that contain at least one repeated digit.

Constraints:

  • 1≤n≤1091 \le n \le 10^9