3663. Find The Least Frequent Digit
Given an integer
n, find the digit that occurs least frequently in its decimal representation. If multiple digits have the same frequency, choose the smallest digit.Return the chosen digit as an integer.
The frequency of a digit
xis the number of times it appears in the decimal representation ofn.
1 | class Solution { |