Given a string s consisting of digits, return the number of unique substrings where every distinct digit present appears with the same frequency.
Note: A substring is a contiguous non empty sequence of characters within a string. Duplicate substrings must only be counted once.
Constraints:
s.length
s consists of digits.
Given a string s consisting of digits, return the number of unique substrings where every distinct digit present appears with the same frequency.
Note: A substring is a contiguous non empty sequence of characters within a string. Duplicate substrings must only be counted once.
Constraints:
s.length
s consists of digits.