Tap here to switch tabs
Problem
Submissions

Problem: Check if All Characters Occur an Equal Number of Times

Try to solve the Check if All Characters Have Equal Number of Occurrences problem.

Statement

Given a string s, determine whether all characters that appear in s have the exact same frequency. Return true if every distinct character occurs the same number of times, or false otherwise.

Constraints:

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

  • s consists of lowercase English letters.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Check if All Characters Occur an Equal Number of Times

Try to solve the Check if All Characters Have Equal Number of Occurrences problem.

Statement

Given a string s, determine whether all characters that appear in s have the exact same frequency. Return true if every distinct character occurs the same number of times, or false otherwise.

Constraints:

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

  • s consists of lowercase English letters.