Updated: 2024-02-25
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