Tap here to switch tabs
Problem
Submissions

Problem: Remove Letter To Equalize Frequency

med
30 min
Try to solve the Remove Letter To Equalize Frequency problem.

Statement

Given a string word consisting of lowercase English letters, determine whether it is possible to remove exactly 11 character from word such that the frequency of every remaining distinct character in the string is equal.

Return true if this is possible, and false otherwise.

Note: The frequency of a character is the count of its occurrences in the string. After removing 11 character, characters with a frequency of 00 are ignored when checking if all remaining characters have equal frequencies.

Constraints:

  • 2≤2 \leq word.length ≤100\leq 100

  • word consists of lowercase English letters only.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Remove Letter To Equalize Frequency

med
30 min
Try to solve the Remove Letter To Equalize Frequency problem.

Statement

Given a string word consisting of lowercase English letters, determine whether it is possible to remove exactly 11 character from word such that the frequency of every remaining distinct character in the string is equal.

Return true if this is possible, and false otherwise.

Note: The frequency of a character is the count of its occurrences in the string. After removing 11 character, characters with a frequency of 00 are ignored when checking if all remaining characters have equal frequencies.

Constraints:

  • 2≤2 \leq word.length ≤100\leq 100

  • word consists of lowercase English letters only.