Updated: 2024-03-12
1 min read

On This Page

class Solution:
    def numberCount(self, a: int, b: int) -> int:
        return sum(len(set(str(num))) == len(str(num)) for num in range(a, b + 1))
Previous
Next