Tap here to switch tabs
Problem
Submissions

Problem: Unique Substrings With Equal Digit Frequency

med
30 min
Try to solve the Unique Substrings With Equal Digit Frequency problem.

Statement

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:

  • 1≤1 \leq s.length ≤1000\leq 1000

  • s consists of digits.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Unique Substrings With Equal Digit Frequency

med
30 min
Try to solve the Unique Substrings With Equal Digit Frequency problem.

Statement

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:

  • 1≤1 \leq s.length ≤1000\leq 1000

  • s consists of digits.