#3747
Count Distinct Integers After Removing Zeros
expert · 1180 · lc medium +32 · 22.4% accepted · 117 likes · top 2%
Description
Given a positive integer n, for each integer x from 1 to n form a new value by removing all zero digits from x's decimal representation, then return the count of distinct values produced.
Code
1
2
3