Leetcode 1405 : Longest Happy String (Medium)

Описание к видео Leetcode 1405 : Longest Happy String (Medium)

A string s is called happy if it satisfies the following conditions:
1) s only contains the letters 'a', 'b', and 'c'.
2) s does not contain any of "aaa", "bbb", or "ccc" as a substring.
3) s contains at most a occurrences of the letter 'a'.
4) s contains at most b occurrences of the letter 'b'.
5) s contains at most c occurrences of the letter 'c'.

#leetcode #coding #priorityqueue #leetcode_medium #codemodecode #programming #codinginterview #placement

Комментарии

Информация по комментариям в разработке