Tap here to switch tabs
Problem
Submissions

Problem: Find The Least Frequent Digit

med
30 min
Try to solve the Find The Least Frequent Digit problem.

Statement

Given a positive integer n, find the least frequent digit present in n.

If multiple digits share the same minimum frequency, return the digit with the smallest value.

Constraints:

  • 1≤1 \leq n ≤231−1\leq 2^{31} - 1

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Find The Least Frequent Digit

med
30 min
Try to solve the Find The Least Frequent Digit problem.

Statement

Given a positive integer n, find the least frequent digit present in n.

If multiple digits share the same minimum frequency, return the digit with the smallest value.

Constraints:

  • 1≤1 \leq n ≤231−1\leq 2^{31} - 1