A substring is balanced when every letter in it appears the same number of times. Given a string of lowercase letters, find the length of the longest balanced substring.
Unlock detailed company stats for this questionUpgrade
Community answers
No answers contributed by the community yet.
Related questions
Calculate the number of times a pattern appears in a string.Among the substrings of a lowercase string whose first letter is a vowel and whose last letter is a consonant, find the alphabetically smallest and the alphabetically largest.Given an array of integers and a number N, find the length of the longest contiguous subarray such that the difference between any two elements in the subarray is less than N.Related courses

Course
